From mihir@noida.hcltech.com Mon Dec 10 06:51:22 2001 Received: from ngate.noida.hcltech.com ([202.54.110.230]) by swi.psy.uva.nl (8.11.6/8.11.2) with ESMTP id fBA5pDA19045 for ; Mon, 10 Dec 2001 06:51:15 +0100 (MET) Received: from exch-01.noida.hcltech.com (exch-01 [204.160.254.29]) by ngate.noida.hcltech.com (8.9.3/8.9.3) with ESMTP id LAA00964 for ; Mon, 10 Dec 2001 11:22:20 +0530 Received: by exch-01.noida.hcltech.com with Internet Mail Service (5.5.2653.19) id ; Mon, 10 Dec 2001 11:21:48 +0530 Message-ID: From: Mihir Malviya To: prolog@swi.swi.psy.uva.nl Date: Mon, 10 Dec 2001 11:21:44 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1813E.BFB12E60" Subject: [SWIPL] Multithreading problem This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C1813E.BFB12E60 Content-Type: text/plain; charset="iso-8859-1" Hi, I need to embedded SWI-prolog into a c++ application which is multithreaded.My query is , do I have to build prolog using the multi-threaded option? or can the single threaded version also be embedded into the application? My second query is the sequence of calls for running in an multithreaded environment... ie do I need to call PL_initialize(), and if yes, should it be called before or after PL_thread_create() ? Rgrds, mihir ------_=_NextPart_001_01C1813E.BFB12E60 Content-Type: text/html; charset="iso-8859-1"
Hi,
  I need to embedded SWI-prolog into a c++ application which is multithreaded.My query is , do I have to build prolog using the multi-threaded option?
or  can the single threaded version also be embedded into the application?
 
My second query is the sequence of calls for running in an multithreaded environment...
ie do I need to call PL_initialize(), and if yes, should it be called before or after PL_thread_create() ?
 
Rgrds,
mihir
------_=_NextPart_001_01C1813E.BFB12E60--