Problem about multi-thread programming
    Tongzhou Li 
    zhangsongcui at hotmail.com
       
    Sun May  6 04:45:32 PDT 2012
    
    
  
On Sunday, 6 May 2012 at 10:39:04 UTC, Chris Cain wrote:
> On Sunday, 6 May 2012 at 04:52:48 UTC, Tongzhou Li wrote:
>> Thanks. Now it works fine with gdc, but still prints nothing 
>> with dmd. It seems that "cv[0].notify()" on line 29 affects 
>> nothing at all when using dmd2 :(
>
> I'm not exactly sure what's going on for it not to work for 
> you, but here's the code I have (I used stdout.flush() because 
> in some command prompts it won't display until it reaches a new 
> line '\n' character otherwise). Maybe this will work better.
>
> https://gist.github.com/5a9b7f611f33ee143880
I used stdout.flush() then it works. Thanks.
    
    
More information about the Digitalmars-d-learn
mailing list