[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sems
Subject:    [Sems] Patch for POSIX threads.
From:       greg () xten ! com (Gregory McGarry)
Date:       2004-11-29 18:25:55
Message-ID: 5yrngjzyjol55oo.291120040927 () mail ! xten ! com
[Download RAW message or body]

IEEE Std 1003.1-2001 states that signals are posted to an
arbitrary thread in the process.  The sems code seems to
assume that the signal is posted to all threads.

This patch blocks all signals in all threads.  For a RTP
Scheduler thread to receive the RTP timer, it explicitly
unblocks the alarm signal.

Index: AmThread.cpp
============================================================
=======
RCS file: /cvsroot/sems/answer_machine/AmThread.cpp,v
retrieving revision 1.12
diff -r1.12 AmThread.cpp
31a32
> #include <signal.h>
56a58,60
>     sigset_t sigset;
>     sigfillset(&sigset);
>     sigprocmask(SIG_BLOCK,&sigset,NULL);

--
Xten Networks Inc.
www.xten.com


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic