commit | f9becec8cd989743aeb22d02a0ededddeecc89a6 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Sat Oct 09 22:47:13 2004 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Sat Oct 09 22:47:13 2004 +0000 |
tree | c4c4aa8d3053caf18f08444bb066e3e4f3d766a3 | |
parent | fda787fcec40a7ff9c4a92ba73091d22bcc8f857 [diff] |
_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.