]> git.eshelyaron.com Git - emacs.git/commit
thread-join returns the result of finished thread
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 22 Jul 2018 09:53:24 +0000 (11:53 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 22 Jul 2018 09:53:24 +0000 (11:53 +0200)
commite23727978dbb07d68f730ffa60b22d59d065850e
tree7ed37a1f0078ba6032a7d924f218c764330a98c8
parentb7ca3d5d932bad6900296679ab87f7d0d64d1de9
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.
doc/lispref/threads.texi
etc/NEWS
src/thread.c
src/thread.h
test/src/thread-tests.el