[issue9786] Native TLS support for pthreads

Kristján Valur Jónsson report at bugs.python.org
Wed Sep 8 08:03:45 CEST 2010


Kristján Valur Jónsson <kristjan at ccpgames.com> added the comment:

Hm, both the test you mention are using the (non-recursive) lock to synchronize threads.  I can't see anything wrong there.

Could you please try to replace the cod in pthread_getspecific() with this:

int err = errno
void *result = pthread_getspecific(key);
errno = err;
return result;

If this fixes those cases, then there is code somewhere that relies on errno being maintained across these calls.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9786>
_______________________________________


More information about the Python-bugs-list mailing list