fix tid lookup
This commit is contained in:
parent
7f910c694d
commit
b88dcb86ab
@ -2488,7 +2488,7 @@ pl_thread_self(void)
|
|||||||
#if THREADS
|
#if THREADS
|
||||||
if (pthread_getspecific(Yap_yaamregs_key) == NULL)
|
if (pthread_getspecific(Yap_yaamregs_key) == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
return worker_id+1;
|
return worker_id;
|
||||||
#else
|
#else
|
||||||
return -2;
|
return -2;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user