>>>>> On Fri, 11 Aug 2006 10:09:49 +0200, Jan Djärv <[EMAIL PROTECTED]> said:
>> That's not a problem because Gnome threads (non-main threads) never >> execute pthread_mutex_(un)lock in the signal hander context. > That does not help, the main thread executes in signal handler > context sometimes. And in that case, both the Gnome thread and the > signal handler may be executing (un)lock_mutex on the same mutex. I don't think this causes a problem. The signal handler is executed in the main thread that is different from the Gnome thread. And as I quoted from IEEE Std 1003.1 in another message, a pthread_mutex_(un)lock call in the signal hander context should work as usual unless the signal interrupted an unsafe function. The condition "unless the signal interrupted an unsafe function" is too strict in reality. My guess was that it could be relaxed to "unless the signal interrupted a pthread_mutex_(un)lock call for the same mutex". YAMAMOTO Mitsuharu [EMAIL PROTECTED] _______________________________________________ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug