Re: [Gauche-devel] =?iso-2022-jp?b?c2lnd2FpdBskQiROJTUlXSE8JUgbKEI=?=
R7RS Scheme scripting engine
Status: Beta
Brought to you by:
shirok
|
From: Rui U. <ru...@gm...> - 2007-01-09 09:21:00
|
Hello,
I'm sorry to send Japanese mail to this mailing list.
The mail I sent is about sigwait support for Gauche.
Sigwait provides an easy and reliable way to handle Unix
signal in a multi-threaded environment. With my patch,
you can write a multi-threaded application in the following
way:
(1) At first, you have to ensure that all threads block
signals that you want to handle.
(2) Signal-handling thread calls sys-sigwait() and wait
for arrival of signal. When signal arrives, sys-sigwait()
returns the signal number, instead of calling signal
handler function.
(3) You can dispatch with the signal number, and process
the signal.
I hope this feature helps you when you write a reliable
application.
thanks,
-- Rui Ueyama
|