From 720089e712a1a43f5525a7c18d0dbbad97354841 Mon Sep 17 00:00:00 2001 From: vsc Date: Wed, 2 Apr 2008 21:44:07 +0000 Subject: [PATCH] threaded version should ignore saved states (for now). git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2191 b08c6af1-5177-4d33-ba66-4b1c6b8b522a --- C/c_interface.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/C/c_interface.c b/C/c_interface.c index dd6fc6cb0..a59e97e8f 100644 --- a/C/c_interface.c +++ b/C/c_interface.c @@ -10,8 +10,11 @@ * File: c_interface.c * * comments: c_interface primitives definition * * * -* Last rev: $Date: 2008-04-02 17:37:06 $,$Author: vsc $ * +* Last rev: $Date: 2008-04-02 21:44:07 $,$Author: vsc $ * * $Log: not supported by cvs2svn $ +* Revision 1.110 2008/04/02 17:37:06 vsc +* handle out of memory error at thread creation (obs from Paulo Moura). +* * Revision 1.109 2008/04/01 15:31:41 vsc * more saved state fixes * @@ -1658,6 +1661,12 @@ YAP_Init(YAP_init_args *yap_init) Yap_argv = yap_init->Argv; Yap_argc = yap_init->Argc; +#ifdef THREADS + if (yap_init->SavedState) { + fprintf(stderr,"[ WARNING: thread Yap will ignore saved state %s ]\n",yap_init->SavedState); + yap_init->SavedState = NULL; + } +#endif if (yap_init->SavedState != NULL || yap_init->YapPrologBootFile == NULL) { if (Yap_SavedInfo (yap_init->SavedState, yap_init->YapLibDir, &Trail, &Stack, &Heap) != 1) {