Roxen.git/
server/
base_server/
roxen.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2010-05-10
2010-05-10 14:22:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>
eaadcc101045e12d1e8e3f37be4566f52c6b3ee9 (
11
lines) (+
8
/-
3
)
[
Show
|
Annotate
]
Branch:
5.2
Bugfix.
Rev: server/base_server/roxen.pike:1.1066
6:
// Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others. // ABS and suicide systems contributed freely by Francesco Chemolli
-
constant cvs_version="$Id: roxen.pike,v 1.
1065
2010/05/10 14:
01
:
55
grubba Exp $";
+
constant cvs_version="$Id: roxen.pike,v 1.
1066
2010/05/10 14:
22
:
25
grubba Exp $";
//! @appears roxen //!
1426:
//! itself and the callback won't be called anymore. { int|float period;
+
function func;
+
array args;
int stopping = 0;
-
protected void repeat (function func,
mixed
args)
+
protected void repeat (function func,
array
args)
{ // Got a minimum of four refs to this: // o One in the task array in bg_process_queue.
1476:
//! //! The repetition will stop if @[stop] is called, or if @[func] //! throws an error.
-
protected void create (int|float period_, function func, mixed... args)
+
protected void create (int|float period_, function func
_
, mixed... args
_
)
{ period = period_;
-
+
func = func_;
+
args = args_;
background_run (period, repeat, func, args); }