Clarify thread switching while waiting for process output

* doc/lispref/threads.texi (Threads): Clarify, that thread
switching happens when waiting for process output from
asynchronous processes.
This commit is contained in:
Michael Albinus 2018-12-23 09:04:37 +01:00
parent 24ddea074a
commit 0f9be72701

View file

@ -17,9 +17,9 @@ correct programs should not rely on cooperative threading.
Currently, thread switching will occur upon explicit request via Currently, thread switching will occur upon explicit request via
@code{thread-yield}, when waiting for keyboard input or for process @code{thread-yield}, when waiting for keyboard input or for process
output (e.g., during @code{accept-process-output}), or during blocking output from asynchronous processes (e.g., during
operations relating to threads, such as mutex locking or @code{accept-process-output}), or during blocking operations relating
@code{thread-join}. to threads, such as mutex locking or @code{thread-join}.
Emacs Lisp provides primitives to create and control threads, and Emacs Lisp provides primitives to create and control threads, and
also to create and control mutexes and condition variables, useful for also to create and control mutexes and condition variables, useful for