summaryrefslogtreecommitdiff
path: root/src/keyboard.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2016-12-11 17:59:55 +0200
committerEli Zaretskii <eliz@gnu.org>2016-12-11 17:59:55 +0200
commit997081634a3b6c2359226305db05c818c492a9b2 (patch)
treecc86cad29bc4a3621c0a48a6a196d87f7b5d13eb /src/keyboard.h
parentc0cfe9bc143686cd97d431831f47787753a95a42 (diff)
downloademacs-997081634a3b6c2359226305db05c818c492a9b2.tar.gz
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.
Diffstat (limited to 'src/keyboard.h')
-rw-r--r--src/keyboard.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/keyboard.h b/src/keyboard.h
index a5ed5e10a98..5084c39b7c1 100644
--- a/src/keyboard.h
+++ b/src/keyboard.h
@@ -415,13 +415,6 @@ extern void unuse_menu_items (void);
#define EVENT_HEAD_KIND(event_head) \
(Fget ((event_head), Qevent_kind))
-/* True while doing kbd input. */
-extern bool waiting_for_input;
-
-/* Address (if not 0) of struct timespec to zero out if a SIGIO interrupt
- happens. */
-extern struct timespec *input_available_clear_time;
-
extern bool ignore_mouse_drag_p;
extern Lisp_Object parse_modifiers (Lisp_Object);