28 Mar
2008
28 Mar
'08
7:46 p.m.
I usually do something like this for that sort of problem. terry boost::mutex Mutex; boost::condition Condition; bool Signalled; void Thread1() { MyCode::CreateThread2(); boost::mutex::scoped_lock l(Mutex); Signalled = false; while (!Signalled) Condition.timed_wait(l, make500msdelay()); } // Thread1 void Thread2() { mutex::scoped_lock(Mutex); Signalled = true; Condition.notify_all(); } // Thread2