unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lynn Winebarger <owinebar@gmail.com>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Blocking calls and threads
Date: Thu, 20 Apr 2023 01:31:14 -0400	[thread overview]
Message-ID: <CAM=F=bAhQxxJZLOTEekqv41mqWQQ3NzKicZb_tznYmaDdVNCoA@mail.gmail.com> (raw)

The thread on how to make asynchronous behavior explicit made me
curious whether making a blocking system call would cause the lisp
thread to yield to other lisp threads (release the global lock).  Do
blocking system calls yield the lisp thread, or is there any way in
lisp code to call blocking functions so that the lisp thread will
yield while the system thread blocks?

Thanks,
Lynn



             reply	other threads:[~2023-04-20  5:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-20  5:31 Lynn Winebarger [this message]
2023-04-20  7:00 ` Blocking calls and threads Po Lu
2023-04-20  7:23 ` Eli Zaretskii
2023-04-20 13:06   ` Lynn Winebarger
2023-04-20 13:28     ` Po Lu
2023-04-20 14:26       ` Lynn Winebarger
2023-04-20 13:37     ` Eli Zaretskii
2023-04-20 14:19       ` Lynn Winebarger
2023-04-20 14:36         ` Eli Zaretskii
2023-04-21  4:39           ` Lynn Winebarger
2023-04-21 13:43             ` Lynn Winebarger

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='CAM=F=bAhQxxJZLOTEekqv41mqWQQ3NzKicZb_tznYmaDdVNCoA@mail.gmail.com' \
    --to=owinebar@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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).