[issue9786] Native TLS support for pthreads

Kristján Valur Jónsson report at bugs.python.org
Mon Sep 13 10:00:31 CEST 2010


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

I've changed the function as you suggest, although there are in fact no failure detection semantics defined for PyThread_create_key().  See e.g. thread.c:294

/* Return a new key.  This must be called before any other functions in
 * this family, and callers must arrange to serialize calls to this
 * function.  No violations are detected.
 */
int
PyThread_create_key(void)

----------
Added file: http://bugs.python.org/file18868/pthread_tls.patch

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


More information about the Python-bugs-list mailing list