Author: Richard Plangger <planri...@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:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to