guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some introductory docs about C level threading


From: Marius Vollmer
Subject: Re: Some introductory docs about C level threading
Date: Tue, 01 Feb 2005 17:01:40 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

address@hidden 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]