mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Explain a little more.
This commit is contained in:
		
							parent
							
								
									af7fde7f34
								
							
						
					
					
						commit
						39c12bfba1
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -172,6 +172,7 @@ def _acquire_restore(self, x): | |||
|         self.__lock.acquire()           # Ignore saved state | ||||
| 
 | ||||
|     def _is_owned(self): | ||||
|         # Return True if lock is owned by currentThread. | ||||
|         # This method is called only if __lock doesn't have _is_owned(). | ||||
|         if self.__lock.acquire(0): | ||||
|             self.__lock.release() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jeremy Hylton
						Jeremy Hylton