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
This commit is contained in:
parent
929ec2412f
commit
720089e712
@ -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) {
|
||||
|
Reference in New Issue
Block a user