MXS-1754 Identify delayed calls using id and not tag
When a delayed call is scheduled for execution, the caller is now returned a unique id using which the delayed call can be cancelled.
This commit is contained in:
@ -129,11 +129,11 @@ int run()
|
||||
TimerTest t4(&rv, 500);
|
||||
TimerTest t5(&rv, 600);
|
||||
|
||||
w.delayed_call(t1.delay(), NULL, &t1, &TimerTest::tick);
|
||||
w.delayed_call(t2.delay(), NULL, &t2, &TimerTest::tick);
|
||||
w.delayed_call(t3.delay(), NULL, &t3, &TimerTest::tick);
|
||||
w.delayed_call(t4.delay(), NULL, &t4, &TimerTest::tick);
|
||||
w.delayed_call(t5.delay(), NULL, &t5, &TimerTest::tick);
|
||||
w.delayed_call(t1.delay(), &t1, &TimerTest::tick);
|
||||
w.delayed_call(t2.delay(), &t2, &TimerTest::tick);
|
||||
w.delayed_call(t3.delay(), &t3, &TimerTest::tick);
|
||||
w.delayed_call(t4.delay(), &t4, &TimerTest::tick);
|
||||
w.delayed_call(t5.delay(), &t5, &TimerTest::tick);
|
||||
|
||||
w.run();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user