[squeak-dev] Re: cannot step Through critical blocks

Levente Uzonyi leves at caesar.elte.hu
Fri Apr 8 08:38:31 UTC 2016


Mutexes are reentrant, while Semaphores are not.
I suspect that primitive 187 doesn't know about effectiveProcess.

Levente

On Thu, 7 Apr 2016, marcel.taeumel wrote:

> Hi Chris!
>
> It may be that Mutex has no support for re-entrancy. You can use a Semaphore
> instead:
>
> | accessProtect |
> accessProtect := Semaphore forMutualExclusion.
> accessProtect critical: [ [Object new ] on: Notification do: [ : noti | ] ].
>
> Then, step-through works.
>
> Best,
> Marcel
>
>
>
> --
> View this message in context: http://forum.world.st/cannot-step-Through-critical-blocks-tp4888942p4888976.html
> Sent from the Squeak - Dev mailing list archive at Nabble.com.
>
>


More information about the Squeak-dev mailing list