fix thread bug
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1943 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
77f10fe803
commit
fd049830a3
@ -795,6 +795,7 @@ Yap_PredPropByFunctorNonThreadLocal(Functor f, Term cur_mod)
|
||||
return Yap_NewPredPropByFunctor(f,cur_mod);
|
||||
|
||||
if ((p->ModuleOfPred == cur_mod || !(p->ModuleOfPred))) {
|
||||
WRITE_UNLOCK(f->FRWLock);
|
||||
return AbsPredProp(p);
|
||||
}
|
||||
if (p->NextOfPE) {
|
||||
@ -807,6 +808,7 @@ Yap_PredPropByFunctorNonThreadLocal(Functor f, Term cur_mod)
|
||||
p->ModuleOfPred == cur_mod)
|
||||
{
|
||||
READ_UNLOCK(PredHashRWLock);
|
||||
WRITE_UNLOCK(f->FRWLock);
|
||||
return AbsPredProp(p);
|
||||
}
|
||||
p = RepPredProp(p->NextOfPE);
|
||||
|
Reference in New Issue
Block a user