aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/multiprocessing/synchronize.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/multiprocessing/synchronize.py')
-rw-r--r--Lib/multiprocessing/synchronize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/multiprocessing/synchronize.py b/Lib/multiprocessing/synchronize.py
index 771f1db8813..30425047e98 100644
--- a/Lib/multiprocessing/synchronize.py
+++ b/Lib/multiprocessing/synchronize.py
@@ -91,7 +91,7 @@ class SemLock(object):
self.release = self._semlock.release
def locked(self):
- return self._semlock._count() != 0
+ return self._semlock._is_zero()
def __enter__(self):
return self._semlock.__enter__()