Commits

Anonymous committed 6758e06

small change to ArrayQueue2

  • Participants
  • Parent commits efc56af

Comments (0)

Files changed (1)

File src/array_queue.py

         
     def put(self, scalar):
         with self.put_cond:
-            ### not finished ###
+            if self.stock_read.value == self.stock_write.value:
+                self.put_cond.wait()
 
 
 class ArrayQueue(object):