[pypy-commit] pypy py3.5: use is_acquired directly! to release the sentinel lock
plan_rich
pypy.commits at gmail.com
Thu Oct 13 09:42:24 EDT 2016
Author: Richard Plangger <planrichi at gmail.com>
Branch: py3.5
Changeset: r87754:2652a6182ee9
Date: 2016-10-13 15:41 +0200
http://bitbucket.org/pypy/pypy/changeset/2652a6182ee9/
Log: use is_acquired directly! to release the sentinel lock
diff --git a/pypy/module/thread/os_local.py b/pypy/module/thread/os_local.py
--- a/pypy/module/thread/os_local.py
+++ b/pypy/module/thread/os_local.py
@@ -93,7 +93,7 @@
def thread_is_stopping(ec):
sentinel_lock = ec._sentinel_lock
if sentinel_lock is not None:
- if sentinel_lock.descr_lock_locked(ec.space):
+ if sentinel_lock.lock.is_acquired():
sentinel_lock.descr_lock_release(ec.space)
tlobjs = ec._thread_local_objs
if tlobjs is None:
More information about the pypy-commit
mailing list