diff options
| author | Eli Zaretskii | 2016-12-11 19:19:10 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2016-12-11 19:19:10 +0200 |
| commit | 2783e0e3899cf92910e97dc8bfda3e47b3df1478 (patch) | |
| tree | 3475105b74b6e83cf99a8eca7a3d3a7fae8276d4 /src | |
| parent | 997081634a3b6c2359226305db05c818c492a9b2 (diff) | |
| download | emacs-2783e0e3899cf92910e97dc8bfda3e47b3df1478.tar.gz emacs-2783e0e3899cf92910e97dc8bfda3e47b3df1478.zip | |
Undo part of last change
* src/thread.h:
* src/keyboard.c:
* src/keyboard.h: Undo part of last change:
input_available_clear_time is again a global variable.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 4 | ||||
| -rw-r--r-- | src/keyboard.h | 4 | ||||
| -rw-r--r-- | src/thread.h | 5 |
3 files changed, 8 insertions, 5 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index cc78548abd0..1fb1d492ce6 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -319,6 +319,10 @@ static ptrdiff_t echo_length (void); | |||
| 319 | /* Incremented whenever a timer is run. */ | 319 | /* Incremented whenever a timer is run. */ |
| 320 | unsigned timers_run; | 320 | unsigned timers_run; |
| 321 | 321 | ||
| 322 | /* Address (if not 0) of struct timespec to zero out if a SIGIO interrupt | ||
| 323 | happens. */ | ||
| 324 | struct timespec *input_available_clear_time; | ||
| 325 | |||
| 322 | /* True means use SIGIO interrupts; false means use CBREAK mode. | 326 | /* True means use SIGIO interrupts; false means use CBREAK mode. |
| 323 | Default is true if INTERRUPT_INPUT is defined. */ | 327 | Default is true if INTERRUPT_INPUT is defined. */ |
| 324 | bool interrupt_input; | 328 | bool interrupt_input; |
diff --git a/src/keyboard.h b/src/keyboard.h index 5084c39b7c1..435851f79c8 100644 --- a/src/keyboard.h +++ b/src/keyboard.h | |||
| @@ -415,6 +415,10 @@ extern void unuse_menu_items (void); | |||
| 415 | #define EVENT_HEAD_KIND(event_head) \ | 415 | #define EVENT_HEAD_KIND(event_head) \ |
| 416 | (Fget ((event_head), Qevent_kind)) | 416 | (Fget ((event_head), Qevent_kind)) |
| 417 | 417 | ||
| 418 | /* Address (if not 0) of struct timespec to zero out if a SIGIO interrupt | ||
| 419 | happens. */ | ||
| 420 | extern struct timespec *input_available_clear_time; | ||
| 421 | |||
| 418 | extern bool ignore_mouse_drag_p; | 422 | extern bool ignore_mouse_drag_p; |
| 419 | 423 | ||
| 420 | extern Lisp_Object parse_modifiers (Lisp_Object); | 424 | extern Lisp_Object parse_modifiers (Lisp_Object); |
diff --git a/src/thread.h b/src/thread.h index f10824f1983..739069a630b 100644 --- a/src/thread.h +++ b/src/thread.h | |||
| @@ -159,11 +159,6 @@ struct thread_state | |||
| 159 | bool m_waiting_for_input; | 159 | bool m_waiting_for_input; |
| 160 | #define waiting_for_input (current_thread->m_waiting_for_input) | 160 | #define waiting_for_input (current_thread->m_waiting_for_input) |
| 161 | 161 | ||
| 162 | /* Address (if not 0) of struct timespec to zero out if a SIGIO interrupt | ||
| 163 | happens. */ | ||
| 164 | struct timespec *m_input_available_clear_time; | ||
| 165 | #define input_available_clear_time (current_thread->m_input_available_clear_time) | ||
| 166 | |||
| 167 | /* The OS identifier for this thread. */ | 162 | /* The OS identifier for this thread. */ |
| 168 | sys_thread_t thread_id; | 163 | sys_thread_t thread_id; |
| 169 | 164 | ||