fix minor locking problems and disable localization for now
This commit is contained in:
parent
4a2d6b9137
commit
13421d0cd7
@ -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);
|
||||
|
@ -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
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
#define DEBUG_PE_LOCKS 1
|
||||
//#define DEBUG_PE_LOCKS 1
|
||||
//#define DEBUG_LOCKS
|
||||
#include <stdio.h>
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user