fix to thread support.
This commit is contained in:
@@ -156,8 +156,8 @@ static void RestoreWorker(int wid USES_REGS) {
|
||||
#endif
|
||||
#ifdef THREADS
|
||||
|
||||
#define FOREIGN_ThreadHandle(wid) (Yap_WLocal[(wid)].thread_handle)
|
||||
#define MY_ThreadHandle (Yap_WLocal[worker_id].thread_handle)
|
||||
#define FOREIGN_ThreadHandle(wid) (Yap_WLocal[(wid)]->thread_handle)
|
||||
#define MY_ThreadHandle (Yap_WLocal[worker_id]->thread_handle)
|
||||
#endif
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user