aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMichael Albinus2018-07-22 11:53:24 +0200
committerMichael Albinus2018-07-22 11:53:24 +0200
commite23727978dbb07d68f730ffa60b22d59d065850e (patch)
tree7ed37a1f0078ba6032a7d924f218c764330a98c8 /etc
parentb7ca3d5d932bad6900296679ab87f7d0d64d1de9 (diff)
downloademacs-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/NEWS18
1 files changed, 12 insertions, 6 deletions
diff --git a/etc/NEWS b/etc/NEWS
index c2b6b500eeb..fc2a5d4c039 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -172,11 +172,6 @@ from a remote host.
172This triggers to search the program on the remote host as indicated by 172This 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.
177This is handy in Lisp programs that run on a non-main thread and want
178to 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.
578Use of built-in libgnutls based functionality (described in the Emacs 573Use of built-in libgnutls based functionality (described in the Emacs
579GnuTLS manual) is recommended instead. 574GnuTLS 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
624selects the messages to summarize with a regexp that matches the 618selects the messages to summarize with a regexp that matches the
625sender of the current message. 619sender of the current message.
626 620
621** Threads
622
623+++
624*** New variable 'main-thread' holds Emacs's main thread.
625This is handy in Lisp programs that run on a non-main thread and want
626to 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'
739is backwards-compatible with versions of Emacs in which the old function 744is backwards-compatible with versions of Emacs in which the old function
740exists. See the node "Displaying Buffers in Side Windows" in the ELisp 745exists. See the node "Displaying Buffers in Side Windows" in the ELisp
741manual for more details. 746manual for more details.
747
742 748
743* Lisp Changes in Emacs 27.1 749* Lisp Changes in Emacs 27.1
744 750