fix bb usage of DB.

This commit is contained in:
Vítor Santos Costa 2014-10-11 01:39:09 +01:00
parent 84527a8c77
commit b2cd81f79a

View File

@ -3148,6 +3148,8 @@ Yap_absmi(int inp)
#if PARALLEL_YAP #if PARALLEL_YAP
PredEntry *ap = cl->ClPred; PredEntry *ap = cl->ClPred;
#endif #endif
/* BB support */
if (ap) {
PELOCK(9,ap); PELOCK(9,ap);
DEC_CLREF_COUNT(cl); DEC_CLREF_COUNT(cl);
@ -3162,6 +3164,7 @@ Yap_absmi(int inp)
} }
UNLOCK(ap->PELock); UNLOCK(ap->PELock);
} }
}
} else { } else {
DynamicClause *cl = ClauseFlagsToDynamicClause(pt1); DynamicClause *cl = ClauseFlagsToDynamicClause(pt1);
int erase; int erase;