Re: [eclipse-clp-users] Recommended way of stopping an embedded ECLiPSe programmatically?

From: Joachim Schimpf <joachim.schimpf_at_infotech.monash.edu.au>
Date: Thu, 04 Mar 2010 09:55:39 +1100
david wrote:
> I use EmbeddedEclipse in Java with synchronous queues, and I would like 
> to be able to stop ECLiPSe from Java if certain terms are seen on the 
> out-queue. I could not find anything in the Javadoc for EmbeddedEclipse 
> about how this might be done.
> 
> Any recommendations?

Since EmbeddedEclipse does not support asynchronous queues, the
easiest solution is to "poll", i.e. let your ECLiPSe-side code
periodically check a synchronous queue for the presence of a
stop-command.  You can use select/3 to check for data on a queue.

-- Joachim
Received on Wed Mar 03 2010 - 23:54:38 CET

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET