+nextPutFirst:
authorClaus Gittinger <cg@exept.de>
Tue, 26 Nov 2002 10:40:25 +0100
changeset 1124 f653d6a20abd
parent 1123 5a407f03c8ce
child 1125 d55d69b4b93a
+nextPutFirst:
SharedQueue.st
--- a/SharedQueue.st	Tue Nov 26 10:21:36 2002 +0100
+++ b/SharedQueue.st	Tue Nov 26 10:40:25 2002 +0100
@@ -161,6 +161,15 @@
     ^ anObject.
 !
 
+nextPutFirst:anObject
+    spaceAvailable wait.
+    accessLock critical:[
+        super nextPutFirst:anObject.
+    ].
+    dataAvailable signal.
+    ^ anObject.
+!
+
 removeAll
     "remove all elements in the queue; do not wait, but
      synchronize access to the queue.
@@ -239,5 +248,5 @@
 !SharedQueue class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic2/SharedQueue.st,v 1.25 2001-06-13 08:17:35 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic2/SharedQueue.st,v 1.26 2002-11-26 09:40:25 cg Exp $'
 ! !