2014-07-31 14:53 GMT+02:00 Levente Uzonyi <[email protected]>: > On Thu, 31 Jul 2014, Jan Vrany wrote: > > On 31/07/14 10:45, Marcel Taeumel wrote: >> >>> Hi! :) >>> >>> I am playing around with Animations [1] in the Moose 5.0/Pharo 3.0 image >>> [2]. Nested use of the same mutex seems to freeze the image. Should that >>> work? >>> >> >> No, it should not :-) Use Monitor instead. >> > > Then what's the difference between Semaphore and Mutex in Pharo?
Mutex are reentrant, Semaphore are not. > > > > Levente > > > >> Jan >> >> >>> Best, >>> Marcel >>> >>> [1] https://github.com/marceltaeumel/animations >>> [2] >>> https://ci.inria.fr/moose/job/moose-5.0/lastSuccessfulBuild/ >>> artifact/moose-5.0.zip >>> >>> >>> >>> -- >>> View this message in context: http://forum.world.st/Should- >>> nested-mutexes-work-in-Pharo-3-0-tp4771110.html >>> Sent from the Pharo Smalltalk Developers mailing list archive at >>> Nabble.com. >>> >>> >> >> >> >
