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 /etc | |
| 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 'etc')
| -rw-r--r-- | etc/NEWS | 18 |
1 files changed, 12 insertions, 6 deletions
| @@ -172,11 +172,6 @@ from a remote host. | |||
| 172 | This triggers to search the program on the remote host as indicated by | 172 | This triggers to search the program on the remote host as indicated by |
| 173 | 'default-directory'. | 173 | 'default-directory'. |
| 174 | 174 | ||
| 175 | +++ | ||
| 176 | ** New variable 'main-thread' holds Emacs's main thread. | ||
| 177 | This is handy in Lisp programs that run on a non-main thread and want | ||
| 178 | to signal the main thread, e.g., when they encounter an error. | ||
| 179 | |||
| 180 | 175 | ||
| 181 | * Editing Changes in Emacs 27.1 | 176 | * Editing Changes in Emacs 27.1 |
| 182 | 177 | ||
| @@ -578,7 +573,6 @@ It was obsolete since Emacs 22.1, replaced by customize. | |||
| 578 | Use of built-in libgnutls based functionality (described in the Emacs | 573 | Use of built-in libgnutls based functionality (described in the Emacs |
| 579 | GnuTLS manual) is recommended instead. | 574 | GnuTLS manual) is recommended instead. |
| 580 | 575 | ||
| 581 | |||
| 582 | ** Message | 576 | ** Message |
| 583 | 577 | ||
| 584 | +++ | 578 | +++ |
| @@ -624,6 +618,17 @@ If this option is non-nil, messages appended to an output file by the | |||
| 624 | selects the messages to summarize with a regexp that matches the | 618 | selects the messages to summarize with a regexp that matches the |
| 625 | sender of the current message. | 619 | sender of the current message. |
| 626 | 620 | ||
| 621 | ** Threads | ||
| 622 | |||
| 623 | +++ | ||
| 624 | *** New variable 'main-thread' holds Emacs's main thread. | ||
| 625 | This is handy in Lisp programs that run on a non-main thread and want | ||
| 626 | to signal the main thread, e.g., when they encounter an error. | ||
| 627 | |||
| 628 | +++ | ||
| 629 | *** 'thread-join' returns the result of the finished thread now. | ||
| 630 | |||
| 631 | |||
| 627 | * New Modes and Packages in Emacs 27.1 | 632 | * New Modes and Packages in Emacs 27.1 |
| 628 | 633 | ||
| 629 | +++ | 634 | +++ |
| @@ -739,6 +744,7 @@ however applications should instead call 'display-buffer-in-side-window' | |||
| 739 | is backwards-compatible with versions of Emacs in which the old function | 744 | is backwards-compatible with versions of Emacs in which the old function |
| 740 | exists. See the node "Displaying Buffers in Side Windows" in the ELisp | 745 | exists. See the node "Displaying Buffers in Side Windows" in the ELisp |
| 741 | manual for more details. | 746 | manual for more details. |
| 747 | |||
| 742 | 748 | ||
| 743 | * Lisp Changes in Emacs 27.1 | 749 | * Lisp Changes in Emacs 27.1 |
| 744 | 750 | ||