[236] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

Re: pthreads and C++

daemon@ATHENA.MIT.EDU (Lassi A. Tuura)
Thu Jan 18 15:26:16 1996

Date: Thu, 18 Jan 1996 18:47:11 +0100 (MET)
From: "Lassi A. Tuura" <lat@afsmail.cern.ch>
Reply-To: "Lassi A. Tuura" <Lassi.Tuura@cern.ch>
To: pthreads@MIT.EDU
In-Reply-To: <199601181612.KAA00691@cascade.cs.utexas.edu>

>  An alternative is to kill the thread with a pthread_kill()
> [signal] and have the signal handler throw an exception; however,
> I believe that threads do not handle signals when they are in a 
> blocked state waiting for i/o, mutex, condition variable, etc. 
> True? 

C++ exceptions are not guaranteed to work from signal handlers.
If you try that, beware that it may not work with every compiler.

//LaT
--
Lassi A. Tuura                           Have you not known?
Lassi.Tuura@cern.ch                      Have you not heard?


home help back first fref pref prev next nref lref last post