bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9216: Signal handling and pthreads


From: Jan Djärv
Subject: bug#9216: Signal handling and pthreads
Date: Thu, 04 Aug 2011 19:07:10 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0) Gecko/20110624 Thunderbird/5.0

Hello.

I've renamed HAVE_GTK_AND_PTHREAD to HAVE_PTHREAD and check for pthread regardless of Gtk+.

        Jan D.


Stefan Monnier skrev 2011-08-02 15:00:
The usage of threads within libraries is an internal matter, so I think
Emacs should be prepared for threads always when<pthread.h>  is available.

That's also my impression.

Are you thinking of sigwait?  Other than sigwait, there is no way to "set up
our signal handlers so we don't need this", where this ==
SIGNAL_THREAD_CHECK.

I was afraid so.

SIGNAL_THREAD_CHECK is not unreliable.  It does not drop signals delivered
to the wrong thread, it forwards them to the main thread.

Indeed, I had misread the code.


         Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]