diff options
author | Eli Zaretskii <eliz@gnu.org> | 2017-01-18 18:00:16 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2017-01-18 18:00:16 +0200 |
commit | 571532605bc0db221c76e36067435e4355e0d1a1 (patch) | |
tree | 5a8120468d552a682c5bbfc1ec9f83c80d364b11 /lisp/emacs-lisp/cursor-sensor.el | |
parent | dbb29d7eb428dd53617d31a9cc159d889deb1e8e (diff) | |
download | emacs-571532605bc0db221c76e36067435e4355e0d1a1.tar.gz emacs-571532605bc0db221c76e36067435e4355e0d1a1.tar.bz2 emacs-571532605bc0db221c76e36067435e4355e0d1a1.zip |
Rudimentary error handling for non-main threads
* src/thread.c (last_thread_error): New static variable.
(syms_of_threads): Staticpro it.
(record_thread_error, Fthread_last_error): New functions.
(syms_of_threads): Defsubr Fthread_last_error.
* doc/lispref/threads.texi (Basic Thread Functions): Document
thread-last-error.
* test/src/thread-tests.el (thread-errors, thread-signal-early)
(threads-condvar-wait): Test the values returned by
thread-last-error.
Diffstat (limited to 'lisp/emacs-lisp/cursor-sensor.el')
0 files changed, 0 insertions, 0 deletions