Calling a function in a defined time intervall
Hi all, I would like to know how can I call a member function each x miliseconds, during a given time. Can any boost library help me for this task ? Regards, Olivier -- Olivier Tournaire MATIS - Institut Géographique National 73, Ave de Paris 94165 St Mandé cedex, France tel: (+33) 1 43 98 80 00 - 71 25 fax: (+33) 1 43 98 85 81
Olivier Tournaire a écrit :
Hi all,
I would like to know how can I call a member function each x miliseconds, during a given time. Can any boost library help me for this task ?
It seems they are no Boost library for that. My guess is you have to use a thread, and wait in the desired time then broadcast to listener on a specific signal. (You work a sunday ? :D ) -- Mickaël Wolff aka Lupus Michaelis Racine http://lupusmic.org Blog http://blog.lupusmic.org
Thank you,
2009/2/1 Igor R
I would like to know how can I call a member function each x miliseconds,
during a given time. Can any boost library help me for this task ?
look at boost::asio library deadline_timer class
Do you have a simple code snippet ? Regards, Olivier PS: Yes Michael, I work everyday ;-) What about you ?
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Do you have a simple code snippet ?
boost documentation has: boost-->documentation-->asio-->tutorial-->using a timer asynchronously: http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio/tutorial/tuttimer2....
participants (3)
-
Igor R
-
Mickael Wolff
-
Olivier Tournaire