Author: Armin Rigo <[email protected]>
Branch: ec-keepalive
Changeset: r81558:d88be6bde3d7
Date: 2016-01-04 19:49 +0100
http://bitbucket.org/pypy/pypy/changeset/d88be6bde3d7/
Log: fixes
diff --git a/rpython/translator/c/src/threadlocal.h
b/rpython/translator/c/src/threadlocal.h
--- a/rpython/translator/c/src/threadlocal.h
+++ b/rpython/translator/c/src/threadlocal.h
@@ -33,6 +33,8 @@
/* Use the '__thread' specifier, so far only on Linux */
+#include <pthread.h>
+
RPY_EXTERN __thread struct pypy_threadlocal_s pypy_threadlocal;
#define OP_THREADLOCALREF_ADDR(r) \
@@ -68,8 +70,6 @@
# define _RPy_ThreadLocals_Set(x) pthread_setspecific(pypy_threadlocal_key,
x)
#endif
-RPY_EXTERN pthread_key_t pypy_threadlocal_key;
-
#define OP_THREADLOCALREF_ADDR(r) \
do { \
@@ -91,6 +91,9 @@
/* ------------------------------------------------------------ */
+RPY_EXTERN pthread_key_t pypy_threadlocal_key;
+
+
/* only for the fall-back path in the JIT */
#define OP_THREADLOCALREF_GET_NONCONST(RESTYPE, offset, r) \
do { \
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit