Could you also possibly clarify another issue -
“I wish to execute two queries in parallel in two different threads using cpp on ubuntu 16”
but the documentation i found is a bit confusing :
manual section=cpp-embedding :
" In some applications, there is a main-program and we want to use Prolog as a logic server . For these applications, the class PlEngine has been defined.
Only a single instance of this class can exist in a process. When used in a multi-threading application, only one thread at a time may have a running query on this engine."
manual section=foreignthread:
" If you are using SWI-Prolog as an embedded engine in a multithreaded application you can access the Prolog engine from multiple threads by creating an engine in each thread from which you call Prolog."
does “2” describe the c interface while “1” describe c++?
and if so, how can I access the c interface using a cpp compiler ?