mirror of
https://github.com/python/cpython.git
synced 2025-08-25 03:04:55 +00:00
Some minute changes.
This commit is contained in:
parent
424e4da9f3
commit
dd8cb446e1
4 changed files with 42 additions and 14 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue