-
-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADDED: Support engines in single-threaded version
This patch revives an old proof-of-concept option to include engines in the single threaded version. The code compiles and tests again. Added Prolog flag `engines` to indicate the system has engine support.
- Loading branch information
1 parent
165d7c2
commit b55bb91
Showing
9 changed files
with
27 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
Author: Jan Wielemaker | ||
E-mail: [email protected] | ||
WWW: http://www.swi-prolog.org | ||
Copyright (c) 2011-2024, University of Amsterdam | ||
Copyright (c) 2011-2025, University of Amsterdam | ||
VU University Amsterdam | ||
CWI, Amsterdam | ||
SWI-Prolog Solutions b.v. | ||
|
@@ -1925,6 +1925,7 @@ initPrologFlags(void) | |
#endif | ||
#ifdef O_PLMT | ||
setPrologFlag("threads", FT_BOOL, !GD->options.nothreads, 0); | ||
setPrologFlag("engines", FT_BOOL, true, 0); | ||
if ( GD->options.xpce >= 0 ) | ||
setPrologFlag("xpce", FT_BOOL, GD->options.xpce, 0); | ||
setPrologFlag("system_thread_id", FT_INTEGER|FF_READONLY, (intptr_t)0); | ||
|
@@ -1934,6 +1935,9 @@ initPrologFlags(void) | |
#else | ||
setPrologFlag("threads", FT_BOOL|FF_READONLY, false, 0); | ||
setPrologFlag("gc_thread", FT_BOOL|FF_READONLY, false, PLFLAG_GCTHREAD); | ||
#ifdef O_ENGINES | ||
setPrologFlag("engines", FT_BOOL, true, 0); | ||
#endif | ||
#endif | ||
#ifdef O_DDE | ||
setPrologFlag("dde", FT_BOOL|FF_READONLY, true, 0); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
Author: Jan Wielemaker and Anjo Anjewierden | ||
E-mail: [email protected] | ||
WWW: http://www.swi-prolog.org | ||
Copyright (c) 1996-2023, University of Amsterdam | ||
Copyright (c) 1996-2025, University of Amsterdam | ||
VU University Amsterdam | ||
CWI, Amsterdam | ||
SWI-Prolog Solutions b.v. | ||
|
@@ -1944,6 +1944,8 @@ | |
wide_character_types. | ||
testset(thread) :- | ||
current_prolog_flag(threads, true). | ||
testset(engines) :- | ||
current_prolog_flag(engines, true). | ||
testset(mutex) :- | ||
current_prolog_flag(threads, true). | ||
|
||
|