Implementation of Monitor?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Implementation of Monitor?

cdavidshaffer
Does anyone know of an implementation of Monitor (the synchronization
tool) similar to the one included in Squeak 4.1 lurking in the public
repo somewhere?  I've tried various searches but ended up empty-handed.

David

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Implementation of Monitor?

Janko Mivšek
Hi David,

On 20. 04. 2011 22:42, C. David Shaffer wrote:
> Does anyone know of an implementation of Monitor (the synchronization
> tool) similar to the one included in Squeak 4.1 lurking in the public
> repo somewhere?  I've tried various searches but ended up empty-handed.

If you will using Monitor only for safeguarding critical sections, this
is a VW equivalent:

  lock := RecursionLock new.
        lock critical: ["code to be executed in critical section"]

Best regards
Janko

--
Janko Mivšek
Aida/Web
Smalltalk Web Application Server
http://www.aidaweb.si
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc