www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - monitor condition variables?

reply Trass3r <un known.com> writes:
So synchronized implements mutual exclusion.
http://www.digitalmars.com/d/2.0/class.html#synchronized-functions

What about condition variables:  
http://en.wikipedia.org/wiki/Monitor_(synchronization)#Waiting_and_signaling
Is there any standard way to do that?
Jul 20 2010
parent torhu <no spam.invalid> writes:
On 20.07.2010 19:21, Trass3r wrote:
 So synchronized implements mutual exclusion.
 http://www.digitalmars.com/d/2.0/class.html#synchronized-functions

 What about condition variables:
 http://en.wikipedia.org/wiki/Monitor_(synchronization)#Waiting_and_signaling
 Is there any standard way to do that?
I think everything from tango.core.sync is included in the dmd download, it's just not in the docs yet. Condition variables are then in core.sync.condition. You can use the Tango docs for now: http://www.dsource.org/projects/tango/docs/current/
Jul 20 2010