WIN32 patches

This commit is contained in:
U-WIN-ENP104VVO3U\Vítor Santos Costa
2011-03-21 17:07:58 +00:00
parent 417bbd6d46
commit 7670ce631b
18 changed files with 2296 additions and 2175 deletions

View File

@@ -1200,8 +1200,8 @@ Yap_InitThread(int new_id)
static void
InitFirstWorkerThreadHandle(void)
{
CACHE_REGS
#ifdef THREADS
CACHE_REGS
ThreadHandle.id = 0;
ThreadHandle.in_use = TRUE;
ThreadHandle.default_yaam_regs =
@@ -1256,8 +1256,8 @@ static void
InitCodes(void)
{
CACHE_REGS
int wid;
#if THREADS
int wid;
for (wid = 1; wid < MAX_INITS; wid++) {
Yap_WLocal[wid] = NULL;
}
@@ -1268,9 +1268,7 @@ InitCodes(void)
#endif
InitGlobal();
InitWorker(0);
#if THREADS
InitFirstWorkerThreadHandle();
#endif
/* make sure no one else can use these two atoms */
CurrentModule = 0;
Yap_ReleaseAtom(AtomOfTerm(TermReFoundVar));