[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

6906: [MUD-Dev] Yet another update on threads and signals

[Full Header] [Plain Text]
From: "Adam J. Thornton" <adam@phoenix.Princeton.EDU>
Newsgroups: nu.kanga.list.mud-dev
Date: Fri, 14 Aug 1998 10:22:41 -0400
Organization: Kanga.Nu
OK, so trapping the signal in a signal handler won't work, because the
POSIX thread functions are not reentrant.

However, using sigwait() will, so instead of a signal handler, I'll spawn a
thread whose only purpose in like is to wait for that signal and, upon
receiving it, do its magic.  It can just block in sigwait() until the
signal is delivered.

Adam
--
adam@princeton.edu 
"There's a border to somewhere waiting, and a tank full of time." - J. Steinman