I've got a problem. I want to get at thread-specific data in a signal handler.
A couple points:
1) pthread_getspecific() is not on the list of async-safe functions for susv2 or
for posix
2) Xavier Leroy, original author of linuxthreads, has written code that uses
pthread_getspecific() in a signal handler, and has stated "I can't think of any
reasonable implementation of pthread_getspecific() that would not be
async-signal safe, though."
3) I can find no documentation stating that pthread_getspecific() is async-safe
on linux.
So, is it safe or not? Can anyone give or point to a definitive answer?
Chris
--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986