fixes to support threads and assert correctly, even if inefficiently.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2030 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
15
C/iopreds.c
15
C/iopreds.c
@@ -3019,6 +3019,21 @@ Yap_CheckStream (Term arg, int kind, char *msg)
|
||||
return CheckStream(arg, kind, msg);
|
||||
}
|
||||
|
||||
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
void
|
||||
Yap_LockStream (int sno)
|
||||
{
|
||||
LOCK(Stream[sno].streamlock);
|
||||
}
|
||||
|
||||
void
|
||||
Yap_UnLockStream (int sno)
|
||||
{
|
||||
UNLOCK(Stream[sno].streamlock);
|
||||
}
|
||||
#endif
|
||||
|
||||
static Int
|
||||
p_check_stream (void)
|
||||
{ /* '$check_stream'(Stream,Mode) */
|
||||
|
||||
Reference in New Issue
Block a user