Mercurial > cpython-lru_cache-weakref
diff Python/thread_pthread.h @ 9055:5bc64efc65e0 legacy-trunk
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 :-(
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 27 Aug 1998 19:21:53 +0000 |
| parents | 1b4a37f37345 |
| children | c2cbe9acfc8e |
line wrap: on
line diff
--- a/Python/thread_pthread.h Thu Aug 27 19:14:49 1998 +0000 +++ b/Python/thread_pthread.h Thu Aug 27 19:21:53 1998 +0000 @@ -167,7 +167,7 @@ long get_thread_ident _P0() { - pthread_t threadid; + volatile pthread_t threadid; if (!initialized) init_thread(); /* Jump through some hoops for Alpha OSF/1 */
