Commit 44ee4794 authored by Guido van Rossum's avatar Guido van Rossum

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 :-(
parent 53195c1a
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment