LOCALS and GLOBALS are now generated by misc/buildlocalglobal.

This commit is contained in:
Joao
2011-05-11 18:22:58 +01:00
parent d6fc76faf1
commit ab63cd190b
17 changed files with 1051 additions and 714 deletions

View File

@@ -2505,7 +2505,7 @@ X_API int
PL_destroy_engine(PL_engine_t e)
{
#if THREADS
return YAP_ThreadDestroyEngine(((struct worker_local *)e)->thread_handle.current_yaam_regs->worker_id_);
return YAP_ThreadDestroyEngine(((struct worker_local *)e)->ThreadHandle_.current_yaam_regs->worker_id_);
#else
return FALSE;
#endif
@@ -2538,7 +2538,7 @@ PL_set_engine(PL_engine_t engine, PL_engine_t *old)
}
return PL_ENGINE_SET;
} else {
nwid = ((struct worker_local *)engine)->thread_handle.current_yaam_regs->worker_id_;
nwid = ((struct worker_local *)engine)->ThreadHandle_.current_yaam_regs->worker_id_;
}
pthread_mutex_lock(&(REMOTE_ThreadHandle(nwid).tlock));