[Vm-dev] Where to get Monitor implementation based on primitives?

Denis Kudriashov dionisiydk at gmail.com
Sun Jan 17 17:01:01 UTC 2016


Hi.

2016-01-17 17:47 GMT+01:00 Ben Coman <btc at openinworld.com>:

> I suspect a problem since it does not check it is the owningProcess
> before setting owningProcess to nil.  AFAIK, only the owning process
> should be able to release the mutex.
>

Yes. But it is not mutex. It is more abstract thing which allow implement
mutex and other concurrency stuff (like ReadWriteLock). That's why I rename
CriticalSection to LockOwnership in my proposals. It only contains
primitives and no high level methods like #critical:.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20160117/1b721121/attachment.htm


More information about the Vm-dev mailing list