From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Clinton Ebadi Newsgroups: gmane.lisp.guile.user Subject: Re: Long-lived Guile scripts in a mono-threaded game engine Date: Tue, 27 May 2008 16:30:40 -0400 Message-ID: <87bq2r5w27.fsf@unknownlamer.org> References: <20080526211900.GB14261@perso.beuc.net> <87fxs4yy89.fsf@gnu.org> <20080527083324.GA16693@perso.beuc.net> <87hccjnars.fsf@gnu.org> <20080527161445.GB18239@perso.beuc.net> <87bq2rhb63.fsf@gnu.org> <20080527195707.GA19385@perso.beuc.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211920273 3533 80.91.229.12 (27 May 2008 20:31:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 May 2008 20:31:13 +0000 (UTC) Cc: guile-user@gnu.org To: Sylvain Beucler Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue May 27 22:31:54 2008 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K15pp-00066s-Hm for guile-user@m.gmane.org; Tue, 27 May 2008 22:31:53 +0200 Original-Received: from localhost ([127.0.0.1]:53875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K15p4-0006N2-6H for guile-user@m.gmane.org; Tue, 27 May 2008 16:31:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K15p0-0006Mt-Fl for guile-user@gnu.org; Tue, 27 May 2008 16:31:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K15oy-0006MU-Kr for guile-user@gnu.org; Tue, 27 May 2008 16:31:01 -0400 Original-Received: from [199.232.76.173] (port=35378 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K15oy-0006MQ-Fw for guile-user@gnu.org; Tue, 27 May 2008 16:31:00 -0400 Original-Received: from deleuze.hcoop.net ([69.90.123.67]:50914) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K15oy-0004dm-7W for guile-user@gnu.org; Tue, 27 May 2008 16:31:00 -0400 Original-Received: from [71.65.238.103] (helo=localhost.localdomain) by deleuze.hcoop.net with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1K15ou-00013N-P8; Tue, 27 May 2008 16:30:56 -0400 In-Reply-To: <20080527195707.GA19385@perso.beuc.net> (Sylvain Beucler's message of "Tue\, 27 May 2008 21\:57\:07 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 1) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6585 Archived-At: Sylvain Beucler writes: > Hi, > > Thanks for your answers Ludovic and Clinton. > > >> An alternative approach could use a thread per script. > > By the way, I have a question about threads: is there a way to kill a > running thread? For example when the current game screen changes, all > current scripts are terminated. Or does this need to be implemented > manually? cancel-thread / scm_cancel_thread should do what you want -- ntk is currently using "telnet fyodor 25" to send email