fix tid lookup

This commit is contained in:
Vítor Santos Costa 2013-03-10 16:44:46 -05:00
parent 7f910c694d
commit b88dcb86ab

View File

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