diff options
| author | Michael Albinus | 2018-07-22 11:53:24 +0200 |
|---|---|---|
| committer | Michael Albinus | 2018-07-22 11:53:24 +0200 |
| commit | e23727978dbb07d68f730ffa60b22d59d065850e (patch) | |
| tree | 7ed37a1f0078ba6032a7d924f218c764330a98c8 /doc | |
| parent | b7ca3d5d932bad6900296679ab87f7d0d64d1de9 (diff) | |
| download | emacs-e23727978dbb07d68f730ffa60b22d59d065850e.tar.gz emacs-e23727978dbb07d68f730ffa60b22d59d065850e.zip | |
thread-join returns the result of finished thread
* doc/lispref/threads.texi (Basic Thread Functions):
* etc/NEWS: Document return value of `thread-join'.
* src/thread.c (invoke_thread_function, Fmake_thread)
(init_main_thread): Set result.
(Fthread_join): Propagate signals, and return result.
(Vmain_thread): New defvar.
* src/thread.h (struct thread_state): Add `result' field.
* test/src/thread-tests.el (threads-join): Test also return value.
(threads-join-error): New test.
(threads-mutex-signal): Check for propagation of `quit' signal.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/threads.texi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/lispref/threads.texi b/doc/lispref/threads.texi index 4cef9c9c6e8..58a3a918efd 100644 --- a/doc/lispref/threads.texi +++ b/doc/lispref/threads.texi | |||
| @@ -75,8 +75,8 @@ thread, @code{nil} otherwise. | |||
| 75 | 75 | ||
| 76 | @defun thread-join thread | 76 | @defun thread-join thread |
| 77 | Block until @var{thread} exits, or until the current thread is | 77 | Block until @var{thread} exits, or until the current thread is |
| 78 | signaled. If @var{thread} has already exited, this returns | 78 | signaled. It returns the result of the @var{thread} function. If |
| 79 | immediately. | 79 | @var{thread} has already exited, this returns immediately. |
| 80 | @end defun | 80 | @end defun |
| 81 | 81 | ||
| 82 | @defun thread-signal thread error-symbol data | 82 | @defun thread-signal thread error-symbol data |