From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 9216-done@debbugs.gnu.org
Subject: bug#9216: Signal handling and pthreads
Date: Thu, 04 Aug 2011 19:07:10 +0200 [thread overview]
Message-ID: <4E3AD1BE.4000907@swipnet.se> (raw)
In-Reply-To: <jwv4o20otqp.fsf-monnier+INBOX@gnu.org>
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
prev parent reply other threads:[~2011-08-04 17:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-01 17:44 bug#9216: Signal handling and pthreads Stefan Monnier
2011-08-02 8:11 ` Jan Djärv
2011-08-02 13:00 ` Stefan Monnier
2011-08-04 17:07 ` Jan Djärv [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E3AD1BE.4000907@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=9216-done@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).