From: Alexandre F. <ale...@gm...> - 2009-08-31 15:51:46
|
Hi Daniel, I am not aware of your answer to the following. I'm insisting because I'm about to try the pthread_kill method... > > my main concern was portability (compared to the existing solution, > > which may well be the lowest common denominator but as a consequence > > does work everywhere...), along with inability to detect at configure > > time which of the various alternative options work correctly (and > > perform better) on a given platform. > > See for example how libev has to decide at compile-time&runtime which > > of its options to use on a given system due to various OS brokenness > > http://cvs.schmorp.de/libev/ev.c?revision=1.313&view=markup > > > Following this links I see many ifdefs indeef, but they rather seem to > be geared towards making the best use of the given platform (select vs > poll, kevents vs signalfd, etc). I don't see anything pertaining to > pthread_kill being unsupported or buggy. Googling also yields reports > about a few pthread_kill issues, but they seem to be restricted to > corner cases (like sending to a dead thread or to self, or using the > KILL signal) which are very far from the use we'd be making of it > (pthread_kill to a living thread, different from the sender, of a > benign signal, with an empty handler). Do you have more precise > evidence ? -Alex |