[pypy-commit] pypy rgc-mem-pressure: make CloseHandle (win32) not thread safe to satisfy __del__ conditions

justinpeel noreply at buildbot.pypy.org
Wed Oct 19 20:32:47 CEST 2011


Author: Justin Peel <notmuchtotell at gmail.com>
Branch: rgc-mem-pressure
Changeset: r48231:20a9ccb0d85d
Date: 2011-10-19 12:32 -0600
http://bitbucket.org/pypy/pypy/changeset/20a9ccb0d85d/

Log:	make CloseHandle (win32) not thread safe to satisfy __del__
	conditions

diff --git a/pypy/module/_multiprocessing/interp_semaphore.py b/pypy/module/_multiprocessing/interp_semaphore.py
--- a/pypy/module/_multiprocessing/interp_semaphore.py
+++ b/pypy/module/_multiprocessing/interp_semaphore.py
@@ -25,7 +25,7 @@
         'CreateSemaphoreA', [rffi.VOIDP, rffi.LONG, rffi.LONG, rwin32.LPCSTR],
         rwin32.HANDLE)
     _CloseHandle = rwin32.winexternal('CloseHandle', [rwin32.HANDLE],
-        rwin32.BOOL)
+        rwin32.BOOL, threadsafe=False)
     _ReleaseSemaphore = rwin32.winexternal(
         'ReleaseSemaphore', [rwin32.HANDLE, rffi.LONG, rffi.LONGP],
         rwin32.BOOL)


More information about the pypy-commit mailing list