|
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.
Anthony
-- Author of C++ Concurrency in Action http://www.stdthread.co.uk/book/ just::thread C++0x thread library http://www.stdthread.co.uk Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk 15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net