
23 Sep
2005
23 Sep
'05
9:43 p.m.
Jason Hise <chaos@ezequal.com> writes:
Can the yield function of boost::thread be used to immediately wake up a thread that is sleeping? I would like to use this to make sure that certain threads get the chance to exit before the process terminates, without join resulting in the whole program sleeping.
No. I am currently exploring ideas around waking specific threads on win32 as an implementation detail of various boost::thread primitives, but I am not aware of ways to do this on other platforms, such as those using pthreads. Anthony -- Anthony Williams Software Developer Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk