From: Eli Zaretskii <eliz@gnu.org>
To: Helmut Eller <eller.helmut@gmail.com>
Cc: 64819@debbugs.gnu.org
Subject: bug#64819: 30.0.50; condition-wait not interruptible
Date: Mon, 24 Jul 2023 15:10:24 +0300 [thread overview]
Message-ID: <83pm4hse6n.fsf@gnu.org> (raw)
In-Reply-To: <m27cqp3jmj.fsf@gmail.com> (message from Helmut Eller on Mon, 24 Jul 2023 08:32:04 +0200)
> From: Helmut Eller <eller.helmut@gmail.com>
> Date: Mon, 24 Jul 2023 08:32:04 +0200
>
> When Emacs is blocked in condition-wait, then C-g doesn't seem to work.
> E.g. Emacs hangs and pressing C-g has no apparent effect when executing
> the attached file with:
>
> emacs -Q -l deadlock.el -f deadlock
>
> Mabye sys_cond_wait could call pthread_cond_timedwait with a fairly long
> timeout, say one second, and repeatedly check if C-g was pressed.
How will we know what to do with C-g if some thread runs Lisp, while
one or more other threads are stuck in condition-wait? wouldn't you
expect in this case to have C-g go to the running thread?
next prev parent reply other threads:[~2023-07-24 12:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-24 6:32 bug#64819: 30.0.50; condition-wait not interruptible Helmut Eller
2023-07-24 12:10 ` Eli Zaretskii [this message]
2023-07-24 12:58 ` Helmut Eller
2023-07-24 13:34 ` Eli Zaretskii
2023-07-24 14:57 ` Helmut Eller
2023-07-24 16:23 ` Eli Zaretskii
2023-07-25 8:06 ` Helmut Eller
2023-07-25 12:18 ` Eli Zaretskii
2023-07-25 12:59 ` Helmut Eller
2023-09-02 21:58 ` Stefan Kangas
2023-09-03 19:53 ` Helmut Eller
2023-09-06 9:35 ` Stefan Kangas
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=83pm4hse6n.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=64819@debbugs.gnu.org \
--cc=eller.helmut@gmail.com \
/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).