[BUG] ensuring that mutual-exclusion Semaphores retain their excess
signals
Craig Latta
Craig.Latta at NetJam.ORG
Fri Aug 4 01:23:35 UTC 2000
Hi--
Now that Squeak supports ensured behavior, Semaphore>>critical: should
ensure that the receiver ends up with an excess signal, no matter what
happens while evaluating the critical block (e.g., an unhandled
exception). Something along the lines of:
***
self wait.
^aBlock ensure: [self signal]
***
And is Semaphore>>critical:ifError: really necessary anymore, given the
current exception-handling system?
thanks,
-C
--
Craig Latta
composer and computer scientist
craig.latta at netjam.org
www.netjam.org
crl at watson.ibm.com
Smalltalkers do: [:it | All with: Class, (And love: it)]
More information about the Squeak-dev
mailing list
|