Problem about multi-thread programming

David Nadlinger see at klickverbot.at
Sat May 5 11:46:31 PDT 2012


On Saturday, 5 May 2012 at 08:45:21 UTC, Tongzhou Li wrote:
> I wrote: http://codepad.org/K4xQOREZ

Besides the other things mentioned, you also need to lock the 
monitor associated with a condition before notifying/waiting (cf. 
a recent discussion on the druntime list).

David


More information about the Digitalmars-d-learn mailing list