From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.user Subject: Re: Some introductory docs about C level threading Date: Tue, 01 Feb 2005 17:01:40 +0100 Message-ID: References: <20050122123719.GA15432@www> <20050125090646.GA4039@www> <87vf9lbiv7.fsf@trouble.defaultvalue.org> <20050126090540.GA8742@www> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1107275176 23372 80.91.229.2 (1 Feb 2005 16:26:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Feb 2005 16:26:16 +0000 (UTC) Cc: guile-user@gnu.org, Rob Browning Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Feb 01 17:26:15 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Cw0Yc-0006wD-21 for guile-user@m.gmane.org; Tue, 01 Feb 2005 17:07:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cw0lX-00038L-VJ for guile-user@m.gmane.org; Tue, 01 Feb 2005 11:20:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cw0kC-0002UX-0N for guile-user@gnu.org; Tue, 01 Feb 2005 11:19:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cw0k4-0002S9-Np for guile-user@gnu.org; Tue, 01 Feb 2005 11:19:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cw0k4-0002RD-JC for guile-user@gnu.org; Tue, 01 Feb 2005 11:19:04 -0500 Original-Received: from [129.217.163.1] (helo=mail.dt.e-technik.uni-dortmund.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cw0TG-0006sc-Ad for guile-user@gnu.org; Tue, 01 Feb 2005 11:01:42 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id B268E44234; Tue, 1 Feb 2005 17:01:41 +0100 (CET) Original-Received: from mail.dt.e-technik.uni-dortmund.de ([127.0.0.1]) by localhost (krusty [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32105-01-4; Tue, 1 Feb 2005 17:01:41 +0100 (CET) Original-Received: from troy.dt.e-technik.uni-dortmund.de (troy.dt.e-technik.uni-dortmund.de [129.217.163.17]) by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id 2169B44232; Tue, 1 Feb 2005 17:01:41 +0100 (CET) Original-Received: by troy.dt.e-technik.uni-dortmund.de (Postfix, from userid 520) id D47CFB989; Tue, 1 Feb 2005 17:01:40 +0100 (CET) Original-To: tomas@fabula.de In-Reply-To: <20050126090540.GA8742@www> (tomas@fabula.de's message of "Wed, 26 Jan 2005 10:05:41 +0100") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) X-Virus-Scanned: by amavisd-new at dt.e-technik.uni-dortmund.de 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 X-MailScanner-To: guile-user@m.gmane.org Xref: main.gmane.org gmane.lisp.guile.user:4196 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:4196 tomas@fabula.de writes: > My point was rather a `since the implementation is doing this anyway, > and this would be a clearly understandable and simple interface function, > why not provide it?'. Yep. What about the following: - int scm_create_new_os_signal (void) Return an integer that can be used as the signal number with scm_sigaction and scm_queue_os_signal. - void scm_queue_os_signal (int signum) Notify Guile that the OS signal signum has occured. Guile will run the signal handler for it at the next safe point, as prepared by scm_sigaction. SIGNUM can be a number from signals.h, like SIGINT, or it can be a number returned by scm_create_new_os_signal. The function scm_queue_os_signal is save to be called at any time, including from OS signal handlers. _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user