summaryrefslogtreecommitdiffstats
path: root/Python/thread_pthread.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-08-27 19:21:53 (GMT)
committerGuido van Rossum <guido@python.org>1998-08-27 19:21:53 (GMT)
commit44ee479427dd895efcbef2ab263da901836966a4 (patch)
treeed0341aa8f0189b16d7f5cd1bf25c5e37180d367 /Python/thread_pthread.h
parent53195c1a83e5721e4261c341cd5e13e97e4d0eb6 (diff)
downloadcpython-44ee479427dd895efcbef2ab263da901836966a4.zip
cpython-44ee479427dd895efcbef2ab263da901836966a4.tar.gz
cpython-44ee479427dd895efcbef2ab263da901836966a4.tar.bz2
Add a 'volatile' to the declaration of threadid in get_thread_ident().
According to Vladimir Marangozov, this is necessary for AIX, where high optimization levels inline this function and then get it wrong :-(
Diffstat (limited to 'Python/thread_pthread.h')
-rw-r--r--Python/thread_pthread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
index 8758430..64100f4 100644
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -167,7 +167,7 @@ int start_new_thread _P2(func, void (*func) _P((void *)), arg, void *arg)
long get_thread_ident _P0()
{
- pthread_t threadid;
+ volatile pthread_t threadid;
if (!initialized)
init_thread();
/* Jump through some hoops for Alpha OSF/1 */