]> granicus.if.org Git - python/commit
_PyGILState_Init(), PyGILState_Ensure(): Since PyThread_set_key_value()
authorTim Peters <tim.peters@gmail.com>
Sat, 9 Oct 2004 22:47:13 +0000 (22:47 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 9 Oct 2004 22:47:13 +0000 (22:47 +0000)
commitf9becec8cd989743aeb22d02a0ededddeecc89a6
treec4c4aa8d3053caf18f08444bb066e3e4f3d766a3
parentfda787fcec40a7ff9c4a92ba73091d22bcc8f857
_PyGILState_Init(), PyGILState_Ensure():  Since PyThread_set_key_value()
can fail, check its return value, and die if it does fail.

_PyGILState_Init():  Assert that the thread doesn't already have an
association for autoTLSkey.  If it does, PyThread_set_key_value() will
ignore the attempt to (re)set the association, which the code clearly
doesn't want.
Python/pystate.c