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