From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id B84C3D45F for ; Wed, 2 Nov 2005 11:35:13 +0100 (CET) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jA2AZCe8025539 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 2 Nov 2005 11:35:13 +0100 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1EXGG4-0001tD-00; Wed, 02 Nov 2005 10:54:20 +0000 Date: Wed, 2 Nov 2005 10:54:19 +0000 To: Julien Narboux Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] The best way to circumvent the lack of Thread.kill ? Message-ID: <20051102105419.GB5067@furbychan.cocan.org> References: <43688C4C.2080606@inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43688C4C.2080606@inria.fr> User-Agent: Mutt/1.3.28i From: Richard Jones X-Miltered: at nez-perce with ID 43689660.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 notepad:01 wrote:01 theorem:01 theorem:01 thread:02 thread:02 graphical:02 prover:02 prover:02 complex:04 structure:04 problem:05 indeed:05 interface:05 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_FAIL autolearn=disabled version=3.0.3 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. Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com