Problem about multi-thread programming
Tongzhou Li
zhangsongcui at hotmail.com
Sat May 5 21:54:43 PDT 2012
On Saturday, 5 May 2012 at 18:46:32 UTC, David Nadlinger wrote:
> 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
Why? There's no data races...
More information about the Digitalmars-d-learn
mailing list