dsimcha Wrote:

> void main() {
>     condition = new Condition( new Mutex() );
>     auto T = new Thread(&waitThenPrint);
>     T.start();
>     condition.notify();  // Never wakes up and prints FOO.
> }

Your program terminates immediately after sending the notification. You need to 
stall the exit until the other thread has a chance to wake up. 

Reply via email to