fix worker_id assignment in threads

This commit is contained in:
Vitor Santos Costa 2012-12-14 19:58:07 +00:00
parent a1db3dba0b
commit e648d197a8

View File

@ -1770,6 +1770,7 @@ Yap_InitYaamRegs( int myworker_id )
#ifdef THREADS
LOCAL = REMOTE(myworker_id);
#endif /* THREADS */
worker_id = myworker_id;
#if COROUTINING
REMOTE_WokenGoals(myworker_id) = Yap_NewTimedVar(TermNil);
REMOTE_AttsMutableList(myworker_id) = Yap_NewTimedVar(h0var);