class: Semaphore
authorClaus Gittinger <cg@exept.de>
Fri, 23 Aug 2013 17:35:42 +0200
changeset 15690 5c5b99d9e0d2
parent 15689 76245e4ca77b
child 15691 80911ed523c0
class: Semaphore changed: #wait #waitWithTimeoutMs:
Semaphore.st
--- a/Semaphore.st	Fri Aug 23 16:39:09 2013 +0200
+++ b/Semaphore.st	Fri Aug 23 17:35:42 2013 +0200
@@ -836,7 +836,7 @@
                 wasBlocked ifFalse:[OperatingSystem unblockInterrupts].
             ].
             self removeWaitingProcess:activeProcess.
-        ] doUntil:[count > 0].
+        ] doWhile:[count <= 0].
     ].
 
     count := count - 1.
@@ -976,7 +976,7 @@
                 wasBlocked ifFalse:[OperatingSystem unblockInterrupts].
                 ^ nil
             ].
-        ] doUntil:[count > 0].
+        ] doWhile:[count <= 0].
 
         timeoutBlock notNil ifTrue:[
             Processor removeTimedBlock:timeoutBlock.
@@ -1000,10 +1000,10 @@
 !Semaphore class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Semaphore.st,v 1.94 2013-08-16 17:51:57 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Semaphore.st,v 1.95 2013-08-23 15:35:42 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/Semaphore.st,v 1.94 2013-08-16 17:51:57 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Semaphore.st,v 1.95 2013-08-23 15:35:42 cg Exp $'
 ! !