Boost logo

Boost Users :

Subject: Re: [Boost-users] postpone thread execution
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2010-07-13 06:00:46

"Lloyd" <lloyd_at_[hidden]> writes:

> In boost::thread, when a thread is created, it starts execution at that
> instance itself. Instead of this, is it possible to postpone the execution?

No. You can have the thread function block on a condition variable or
something straight away though. That way you can control when it resumes
by setting the flag and notifying the condition variable.


Author of C++ Concurrency in Action
just::thread C++0x thread library   
Just Software Solutions Ltd
15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at