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

From: Joachim Schimpf <joachim.schimpf_at_...44...>
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.3.0 : Wed Sep 25 2024 - 15:13:20 CEST