all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* No thread yield when using synchronous processes?
@ 2018-12-12 22:35 Philipp Stephani
  2018-12-13  9:47 ` Michael Albinus
  0 siblings, 1 reply; 7+ messages in thread
From: Philipp Stephani @ 2018-12-12 22:35 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

it seems like Emacs doesn't yield when using synchronous processes:

(make-thread (lambda () (call-process "sleep" nil nil nil "5s")))

⇒ Emacs freezes for 5 seconds.

Is there a reason for this behavior? The manual claims that Emacs
yields when waiting for process output, but that only seems to be the
case for asynchronous processes. It's of course possible to simulate
synchronous processes with asynchronous processes, but the
asynchronous process API is more difficult to use.

Thanks,
Philipp



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-12-23  9:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-12 22:35 No thread yield when using synchronous processes? Philipp Stephani
2018-12-13  9:47 ` Michael Albinus
2018-12-13 13:45   ` Eli Zaretskii
2018-12-22 22:50     ` Philipp Stephani
2018-12-22 22:48   ` Philipp Stephani
2018-12-23  8:07     ` Michael Albinus
2018-12-23  9:58       ` Philipp Stephani

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.