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 :-(
This commit is contained in:
Guido van Rossum 1998-08-27 19:21:53 +00:00
parent 53195c1a83
commit 44ee479427

View file

@ -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 */