<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2016-02-06 8:16 GMT+01:00 Ben Coman <span dir="ltr"><<a href="mailto:btc@openinworld.com" target="_blank">btc@openinworld.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":64l" class="a3s" style="overflow:hidden">@Dennis, Why not...<br>
primitiveEnterCriticalSectionOnBehalfOf: activeProcess<br>
<primitive: 186><br>
self primitiveFailed<br>
<br>
I had been meaning to ask what this code at the top of the primitive was for...<br>
<span class=""> argumentCount > 0<br>
ifTrue:<br>
[criticalSection := self stackValue: 1. "rcvr"<br>
activeProc := self stackTop]<br>
ifFalse:<br>
[criticalSection := self stackTop. "rcvr"<br>
activeProc := self activeProcess].<br>
<br>
</span>but took a wild guess its to support onBehalfOf type calls.</div></blockquote></div><br>Nice. What about tryAcquire (187)? Does it implemented same way?</div><div class="gmail_extra"><br></div><div class="gmail_extra"> </div></div>