]> git.eshelyaron.com Git - emacs.git/commit
Avoid aborts when a thread signals an error
authorEli Zaretskii <eliz@gnu.org>
Sun, 11 Dec 2016 15:59:55 +0000 (17:59 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 11 Dec 2016 15:59:55 +0000 (17:59 +0200)
commit997081634a3b6c2359226305db05c818c492a9b2
treecc86cad29bc4a3621c0a48a6a196d87f7b5d13eb
parentc0cfe9bc143686cd97d431831f47787753a95a42
Avoid aborts when a thread signals an error

* src/thread.h (struct thread_state): Add members
m_waiting_for_input and m_input_available_clear_time.
(waiting_for_input, input_available_clear_time): New macros.
* src/keyboard.c (waiting_for_input, input_available_clear_time):
Remove; they are now macros that reference the current thread.
(Bug#25171)
* src/w32select.c: Don't include keyboard.h.

* test/src/thread-tests.el (thread-errors): New test.
src/keyboard.c
src/keyboard.h
src/thread.h
src/w32select.c
test/src/thread-tests.el