Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
The best way to circumvent the lack of Thread.kill ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] The best way to circumvent the lack of Thread.kill ?
On Wed, Nov 02, 2005 at 10:52:12AM +0100, Julien Narboux wrote:
> My problem is that I don't want to pollute my target thread with checks 
> for a variable.
> Indeed, I am writing a graphical user interface for an automated theorem 
> prover.

How about forking off the theorem prover as a separate process?  You
can communicate the result back to the main program using either a
status code or a pipe (depending on how complex the result structure
is).  The interrupt button just kills the forked process.


Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology -
Team Notepad - intranets and extranets for business -