17 Jun
2007
17 Jun
'07
3:55 a.m.
On 16/06/07, Meryl Silverburgh
Can you please tell me if i can do this with boost::thread library? 1. create a timer (say 5 seconds) which execute a function in a different thread when it expires. 2. the creator can cancel the timer before it expires.
It's not premade, but you could do it easily enough. Start a thread
which will wait (until an xtime), then call a function (stored in a
boost::function