Subj : Re: pthread_getspecific or __thread for signal handler? To : comp.programming.threads From : Ian Pilcher Date : Tue Feb 01 2005 11:46 am Alexander Terekhov wrote: > > Should work? Not if allocation of __thread storage is done lazy > and in async-signal-UNsafe manner. > > Next comes "violation" of C/POSIX restriction imposed on accesses > within async-signal handlers (only assignments to static volatile > sig_atomic_t are allowed). > Alexander, Can you suggest any way to access thread-specific data in a signal handler? Thanks! -- ======================================================================== Ian Pilcher i.pilcher@comcast.net ======================================================================== .