[Vm-dev] #resume:preemptedYieldingIf: not fair?
Ben Coman
btc at openinworld.com
Mon Jun 6 11:44:26 UTC 2016
At the bottom of InterpreterPrimitives>>primitiveExitCriticalSection
is the comment "Note that resume: isn't fair; it won't suspend the
active process."
but #resume:preemptedYieldingIf: has the following
newPriority <= activePriority ifTrue:
[self putToSleep: aProcess yieldingIf: true.
^false].
self putToSleep: activeProc yieldingIf: yieldImplicitly.
where that that last line seems contrary to the
primitiveExitCriticalSection comment.
Could someone clarify this?
cheers -ben
More information about the Vm-dev
mailing list