fix minor locking problems and disable localization for now

This commit is contained in:
Vitor Santos Costa 2014-10-19 03:51:56 +01:00
parent 4a2d6b9137
commit 13421d0cd7
4 changed files with 7 additions and 4 deletions

View File

@ -1789,9 +1789,12 @@ PredPropByAtomAndMod (Atom at, Term cur_mod)
{ LOCK((Z)->PELock); (Z)->StatisticsForPred.NOfEntries=(I);(Z)->StatisticsForPred.NOfHeadSuccesses=pthread_self(); }
#define UNLOCKPE(I,Z) \
( (Z)->StatisticsForPred.NOfRetries=(I), UNLOCK((Z)->PELock) )
#else
#elif YAPOR || THREADS
#define PELOCK(I,Z) (LOCK((Z)->PELock))
#define UNLOCKPE(I,Z) (UNLOCK((Z)->PELock))
#else
#define PELOCK(I,Z)
#define UNLOCKPE(I,Z)
#endif
INLINE_ONLY EXTERN inline void AddPropToAtom(AtomEntry *, PropEntry *p);

View File

@ -33,7 +33,7 @@
#define O_STRING 1
#define O_QUASIQUOTATIONS 1
#if HAVE_LOCALE_H && HAVE_SETLOCALE
#define O_LOCALE 1
//#define O_LOCALE 1
#endif
//#define O_ATOMGC 1
//#define O_CLAUSEGC 1

View File

@ -21,7 +21,7 @@
#include <pthread.h>
#define DEBUG_PE_LOCKS 1
//#define DEBUG_PE_LOCKS 1
//#define DEBUG_LOCKS
#include <stdio.h>

View File

@ -70,7 +70,7 @@ locking is required.
#define PL_KERNEL 1
#if HAVE_LOCALE_H && HAVE_SETLOCALE
#define O_LOCALE 1
//#define O_LOCALE 1
#endif
#include <wchar.h>
#define NEEDS_SWINSOCK