[Xorp-hackers] Timer Event
michael anonyme
michael_anonyme at hotmail.com
Wed Mar 11 00:05:35 PDT 2009
Hello,
I'm trying to add an event to the EventLoop :
_timeOutVal(TimeVal(10,0)) is initialized in constructor.
I would like that after 10 seconds, Xorp run test_cb method, but it doesn't seems to work.
XorpTimer t = _eventloop.new_oneoff_after(_timeOutVal,callback(this,&ConsensusMain::test_cb));
void ConsensusMain::test_cb() {
XLOG_INFO("RUN TEST CALLBACK!!!!!\n");
}
What did I do wrong??
Thanks!
Best regards,
Michael
_________________________________________________________________
Rejoignez la nouvelle famille de Windows Live Messenger
http://download.live.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-hackers/attachments/20090311/512f5535/attachment.html
More information about the Xorp-hackers
mailing list