
Gottlob Frege <gottlobfrege@gmail.com> writes:
On Wed, Nov 25, 2009 at 12:59 AM, Gottlob Frege <gottlobfrege@gmail.com> wrote:
I've checked in a new version on trunk
https://svn.boost.org/svn/boost/trunk/boost/thread/win32/once.hpp
Probably, except you never actually wait on the event! :-) (or maybe I missed it).
I'm assuming you mean to wait on it after the 'waiting' thread creates it if it doesn't exist:
if(!counted) { ***** Wait(event_handle); ****** ? }
Or not quite there, because of the 'continue', but somewhere around there. (?)
Just outside the closing brace of the if(!counted) block. I've checked in the change. 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