<div dir="ltr"><div class="gmail_extra">Hi.</div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-17 17:47 GMT+01:00 Ben Coman <span dir="ltr">&lt;<a href="mailto:btc@openinworld.com" target="_blank">btc@openinworld.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":2g3" class="a3s" style="overflow:hidden">I suspect a problem since it does not check it is the owningProcess<br>
before setting owningProcess to nil.  AFAIK, only the owning process<br>
should be able to release the mutex. </div></blockquote></div><br>Yes. But it is not mutex. It is more abstract thing which allow implement mutex and other concurrency stuff (like ReadWriteLock). That&#39;s why I rename CriticalSection to LockOwnership in my proposals. It only contains primitives and no high level methods like #critical:.</div></div>