warnings & typo
This commit is contained in:
parent
c695e5e068
commit
f1cbffae6f
@ -1276,7 +1276,7 @@ p_new_mutex( USES_REGS1 )
|
|||||||
|
|
||||||
if (pthread_cond_broadcast(condp) < 0)
|
if (pthread_cond_broadcast(condp) < 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
v return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Int
|
static Int
|
||||||
@ -1623,10 +1623,9 @@ p_new_mutex( USES_REGS1 )
|
|||||||
|
|
||||||
if (IsVarTerm(t1)) {
|
if (IsVarTerm(t1)) {
|
||||||
p_new_mutex( PASS_REGS1 );
|
p_new_mutex( PASS_REGS1 );
|
||||||
|
}
|
||||||
t1 = Deref(ARG1);
|
t1 = Deref(ARG1);
|
||||||
mut = IntOfTerm(t1);
|
mut = IntOfTerm(t1);
|
||||||
}
|
|
||||||
|
|
||||||
tg = Yap_StripModule(tg, &tm);
|
tg = Yap_StripModule(tg, &tm);
|
||||||
if (IsVarTerm(tg)) {
|
if (IsVarTerm(tg)) {
|
||||||
Yap_Error(INSTANTIATION_ERROR, ARG2, "with_mutex/2");
|
Yap_Error(INSTANTIATION_ERROR, ARG2, "with_mutex/2");
|
||||||
|
Reference in New Issue
Block a user