more fixes over tabling changes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@953 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
e7ab7b4c8a
commit
b16de6ad3d
15
C/cdmgr.c
15
C/cdmgr.c
@ -1491,21 +1491,6 @@ p_showconslultlev(void)
|
||||
static void
|
||||
end_consult(void)
|
||||
{
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
consult_obj *fp;
|
||||
|
||||
/* force indexing for static and dynamic update predicates
|
||||
after consult and not when all hell may break loose ! */
|
||||
for (fp = ConsultSp; fp < ConsultBase; ++fp) {
|
||||
PredEntry *pred = RepPredProp(fp->p);
|
||||
WRITE_LOCK(pred->PRWLock);
|
||||
if (pred->OpcodeOfPred == INDEX_OPCODE) {
|
||||
IPred(pred);
|
||||
/* IPred does the unlocking */
|
||||
}
|
||||
WRITE_UNLOCK(pred->PRWLock);
|
||||
}
|
||||
#endif
|
||||
ConsultSp = ConsultBase;
|
||||
ConsultBase = ConsultSp+ConsultSp->c;
|
||||
ConsultSp += 3;
|
||||
|
Reference in New Issue
Block a user