[issue1332] threading.RLock().aquire(0) fails with python-2.5.1.amd64.msi

Warren DeLano report at bugs.python.org
Fri Oct 26 21:36:54 CEST 2007


Warren DeLano added the comment:

Disabling Python's emulated InterlockedCompareExchange (for Win95 
compatibility) cures the problem, so the underlying question is why the 
existence of InterlockedCompareExchange is not being autodetected on 64 
bit systems -- and that is apparently because GetProcAddress
(kernel,"InterlockedCompareExchange") returns NULL -- which makes sense 
since InterlockedCompareExchange appears to be implemented using macros 
instead of being served up through kernel32.dll.

So is Win95 still a supported platform?  

If not, then perhaps InterlockedCompareExchange emulation can simply be 
deleted.  

If so, then either some other approach needs to be adopted to activate 
emulation, or the emulated code needs to be fixed to behave like the 
native windows functions (which appear to only operate on the lowest 32 
bits).

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1332>
__________________________________


More information about the Python-bugs-list mailing list