Some minute changes.

This commit is contained in:
Guido van Rossum 1993-12-29 15:33:08 +00:00
parent 424e4da9f3
commit dd8cb446e1
4 changed files with 42 additions and 14 deletions

View file

@ -7,6 +7,7 @@ class Queue:
# Initialize a queue object with a given maximum size
# (If maxsize is <= 0, the maximum size is infinite)
def __init__(self, maxsize):
import thread
self._init(maxsize)
self.mutex = thread.allocate_lock()
self.esema = thread.allocate_lock()