<br><br><div class="gmail_quote">On Wed, Dec 8, 2010 at 6:22 PM,  <span dir="ltr">&lt;<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
A new version of Kernel was added to project The Inbox:<br>
<a href="http://source.squeak.org/inbox/Kernel-ul.523.mcz" target="_blank">http://source.squeak.org/inbox/Kernel-ul.523.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Kernel-ul.523<br>
Author: ul<br>
Time: 8 December 2010, 4:45:41.467 am<br>
UUID: 809ca265-c5de-ac47-b6d6-226f80cf9245<br>
Ancestors: Kernel-ul.522<br>
<br>
- added Semaphore &gt;&gt; #waitIfLocked:<br>
<br>
=============== Diff against Kernel-ul.522 ===============<br>
<br>
Item was added:<br>
+ ----- Method: Semaphore&gt;&gt;waitIfLocked: (in category &#39;communication&#39;) -----<br>
+ waitIfLocked: aBlock<br>
+       &quot;Use a signal if available, otherwise evaluate aBlock&quot;<br>
+<br>
+       excessSignals == 0 ifTrue: [ ^aBlock value ].<br>
+       excessSignals := excessSignals - 1!<br></blockquote><div><br></div><div>Not  </div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">waitIfLocked: aBlock<br>
       &quot;Use a signal if available, otherwise evaluate aBlock&quot;<br><br>       excessSignals == 0 ifTrue: [ ^aBlock valueNoContextSwitch ].<br>       excessSignals := excessSignals - 1</span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">?</span></div></div><br>