D Mutex reference.

Saaa empty at needmail.com
Thu Jan 18 17:47:27 PST 2007


> http://digitalmars.com/d/statement.html#SynchronizedStatement
>
> Does this one help?

Thanks for the reply.
I have one thread generating alot of data and main reading a few of them 
every 10ms or so.
This can be a problem, right? (when main tries to read some data which 
hasn't been writting completely?)
Reading about multi threading pointed me to mutexes, but I can't find any 
reference.
Synchronized only locks a part of the code, not the actual data? 




More information about the Digitalmars-d-learn mailing list