diff options
| author | Stefan Monnier | 2017-10-06 09:50:54 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2017-10-06 09:50:54 -0400 |
| commit | 11f9cb522fed9aa6552f6315340ca7352661a1e8 (patch) | |
| tree | 39facc48471c67b321c045e47d70ef030adbea44 /src/thread.h | |
| parent | 92045f4546b9708dc9f69954799d211c1f56ff1e (diff) | |
| parent | 9655937da4a339300c624addd97674c038a01bc9 (diff) | |
| download | emacs-11f9cb522fed9aa6552f6315340ca7352661a1e8.tar.gz emacs-11f9cb522fed9aa6552f6315340ca7352661a1e8.zip | |
Merge emacs-26
Diffstat (limited to 'src/thread.h')
| -rw-r--r-- | src/thread.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/thread.h b/src/thread.h index 7fce8674f0e..cb2133d72d4 100644 --- a/src/thread.h +++ b/src/thread.h | |||
| @@ -158,6 +158,13 @@ struct thread_state | |||
| 158 | bool m_waiting_for_input; | 158 | bool m_waiting_for_input; |
| 159 | #define waiting_for_input (current_thread->m_waiting_for_input) | 159 | #define waiting_for_input (current_thread->m_waiting_for_input) |
| 160 | 160 | ||
| 161 | /* For longjmp to where kbd input is being done. This is per-thread | ||
| 162 | so that if more than one thread calls read_char, they don't | ||
| 163 | clobber each other's getcjmp, which will cause | ||
| 164 | quit_throw_to_read_char crash due to using a wrong stack. */ | ||
| 165 | sys_jmp_buf m_getcjmp; | ||
| 166 | #define getcjmp (current_thread->m_getcjmp) | ||
| 167 | |||
| 161 | /* The OS identifier for this thread. */ | 168 | /* The OS identifier for this thread. */ |
| 162 | sys_thread_t thread_id; | 169 | sys_thread_t thread_id; |
| 163 | 170 | ||