mirror of
https://github.com/python/cpython.git
synced 2026-05-21 03:44:14 -04:00
Eliminate RLock race condition reported in SF bug #1764059
This commit is contained in:
+2
-1
@@ -85,9 +85,10 @@ class _RLock(_Verbose):
|
||||
self.__count = 0
|
||||
|
||||
def __repr__(self):
|
||||
owner = self.__owner
|
||||
return "<%s(%s, %d)>" % (
|
||||
self.__class__.__name__,
|
||||
self.__owner and self.__owner.getName(),
|
||||
owner and owner.getName(),
|
||||
self.__count)
|
||||
|
||||
def acquire(self, blocking=1):
|
||||
|
||||
Reference in New Issue
Block a user