mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
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:
parent
53195c1a83
commit
44ee479427
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ int start_new_thread _P2(func, void (*func) _P((void *)), arg, void *arg)
|
||||||
|
|
||||||
long get_thread_ident _P0()
|
long get_thread_ident _P0()
|
||||||
{
|
{
|
||||||
pthread_t threadid;
|
volatile pthread_t threadid;
|
||||||
if (!initialized)
|
if (!initialized)
|
||||||
init_thread();
|
init_thread();
|
||||||
/* Jump through some hoops for Alpha OSF/1 */
|
/* Jump through some hoops for Alpha OSF/1 */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue