From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: tomas@fabula.de Newsgroups: gmane.lisp.guile.user Subject: Re: Some introductory docs about C level threading Date: Wed, 2 Feb 2005 10:31:08 +0100 Message-ID: <20050202093108.GA18736@www> 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: multipart/mixed; boundary="===============0751522812==" X-Trace: sea.gmane.org 1107340148 8372 80.91.229.2 (2 Feb 2005 10:29:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Feb 2005 10:29:08 +0000 (UTC) Cc: guile-user@gnu.org, Rob Browning , tomas@fabula.de Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Feb 02 11:29:07 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1CwHkg-0000wl-4C for guile-user@m.gmane.org; Wed, 02 Feb 2005 11:28:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CwHxl-0006nK-Jo for guile-user@m.gmane.org; Wed, 02 Feb 2005 05:42:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CwHWC-0001Xb-CJ for guile-user@gnu.org; Wed, 02 Feb 2005 05:13:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CwHM4-0000Vz-O2 for guile-user@gnu.org; Wed, 02 Feb 2005 05:03:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CwHLz-0000FN-DN for guile-user@gnu.org; Wed, 02 Feb 2005 05:03:19 -0500 Original-Received: from [217.22.192.104] (helo=www.elogos.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CwGqu-00014a-OK for guile-user@gnu.org; Wed, 02 Feb 2005 04:31:13 -0500 Original-Received: by www.elogos.de (Postfix, from userid 5002) id 9FA4C14CB3; Wed, 2 Feb 2005 10:31:08 +0100 (CET) Original-To: Marius Vollmer In-Reply-To: User-Agent: Mutt/1.5.3i 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:4205 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:4205 --===============0751522812== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline --9amGYk9869ThD9tj Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 01, 2005 at 05:01:40PM +0100, Marius Vollmer wrote: > tomas@fabula.de writes: >=20 > > My point was rather a `since the implementation is doing this anyway, [...] >=20 > Yep. What about the following: >=20 > - int scm_create_new_os_signal (void) >=20 > Return an integer that can be used as the signal number with > scm_sigaction and scm_queue_os_signal. >=20 > - void scm_queue_os_signal (int signum) >=20 > Notify Guile that the OS signal signum has occured. [...] > the signal handler for it at the next safe point, as prepared by > scm_sigaction. >=20 > SIGNUM can be a number from signals.h, like SIGINT, or it can be a > number returned by scm_create_new_os_signal. >=20 > The function scm_queue_os_signal is save to be called at any time, > including from OS signal handlers. Yes. I think this looks very nice. Some might argue for something more abstract than an integer (a signal_t or whatnot) -- I wouldn't oppose, but I'm very happy with what you propose. Thanks -- tom=E1s --9amGYk9869ThD9tj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFCAJ3cBcgs9XrR2kYRAu3eAJ4lHZRbMpbheTYLurl3jFElvALCogCaAgZw XYUZts3ukJsdiO+13fVK1jw= =6ME2 -----END PGP SIGNATURE----- --9amGYk9869ThD9tj-- --===============0751522812== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user --===============0751522812==--