[squeak-dev] The Inbox: Kernel-ul.523.mcz
Eliot Miranda
eliot.miranda at gmail.com
Thu Dec 9 03:09:31 UTC 2010
On Wed, Dec 8, 2010 at 6:22 PM, <commits at source.squeak.org> wrote:
> A new version of Kernel was added to project The Inbox:
> http://source.squeak.org/inbox/Kernel-ul.523.mcz
>
> ==================== Summary ====================
>
> Name: Kernel-ul.523
> Author: ul
> Time: 8 December 2010, 4:45:41.467 am
> UUID: 809ca265-c5de-ac47-b6d6-226f80cf9245
> Ancestors: Kernel-ul.522
>
> - added Semaphore >> #waitIfLocked:
>
> =============== Diff against Kernel-ul.522 ===============
>
> Item was added:
> + ----- Method: Semaphore>>waitIfLocked: (in category 'communication')
> -----
> + waitIfLocked: aBlock
> + "Use a signal if available, otherwise evaluate aBlock"
> +
> + excessSignals == 0 ifTrue: [ ^aBlock value ].
> + excessSignals := excessSignals - 1!
>
Not
waitIfLocked: aBlock
"Use a signal if available, otherwise evaluate aBlock"
excessSignals == 0 ifTrue: [ ^aBlock valueNoContextSwitch ].
excessSignals := excessSignals - 1
?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20101208/f625a0a6/attachment.htm
More information about the Squeak-dev
mailing list
|