Hi Denis,
On Jan 17, 2016, at 9:01 AM, Denis Kudriashov dionisiydk@gmail.com wrote:
Hi.
2016-01-17 17:47 GMT+01:00 Ben Coman btc@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:.
Sounds good. Now would be a good time to submit your preferred versions of the primitives which answer the values that make for more natural variable names. I'm about to release new VMs, including a 64-bit Spur JIT. So I could include the new primitives.