mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	... and the number of the counting shall be three.
This commit is contained in:
		
							parent
							
								
									a912c6c891
								
							
						
					
					
						commit
						a3c77677ca
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -26,7 +26,7 @@ def __init__(self, maxsize=0): | ||||||
|         self._init(maxsize) |         self._init(maxsize) | ||||||
|         # mutex must be held whenever the queue is mutating.  All methods |         # mutex must be held whenever the queue is mutating.  All methods | ||||||
|         # that acquire mutex must release it before returning.  mutex |         # that acquire mutex must release it before returning.  mutex | ||||||
|         # is shared between the two conditions, so acquiring and |         # is shared between the three conditions, so acquiring and | ||||||
|         # releasing the conditions also acquires and releases mutex. |         # releasing the conditions also acquires and releases mutex. | ||||||
|         self.mutex = threading.Lock() |         self.mutex = threading.Lock() | ||||||
|         # Notify not_empty whenever an item is added to the queue; a |         # Notify not_empty whenever an item is added to the queue; a | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Raymond Hettinger
						Raymond Hettinger