aboutsummaryrefslogtreecommitdiffstats
path: root/src/thread.h
diff options
context:
space:
mode:
authorGerd Möllmann2024-04-18 09:46:13 +0200
committerGerd Möllmann2024-04-18 10:29:02 +0200
commit3c933f40a844bfc0057d5432ca2a0802d8eb52a5 (patch)
tree917ba1fc1d2d79048e885950e40e7b02e383b570 /src/thread.h
parentc19b988c2967f13597b7a3ceafb7c3cd40d83458 (diff)
downloademacs-3c933f40a844bfc0057d5432ca2a0802d8eb52a5.tar.gz
emacs-3c933f40a844bfc0057d5432ca2a0802d8eb52a5.zip
Initial result of applying diff
Diffstat (limited to 'src/thread.h')
-rw-r--r--src/thread.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/thread.h b/src/thread.h
index 1844cf03967..6a22de29478 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -19,6 +19,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
19#ifndef THREAD_H 19#ifndef THREAD_H
20#define THREAD_H 20#define THREAD_H
21 21
22#include "config.h"
22#include "regex-emacs.h" 23#include "regex-emacs.h"
23 24
24#ifdef WINDOWSNT 25#ifdef WINDOWSNT
@@ -214,6 +215,11 @@ struct thread_state
214 struct thread_state *next_thread; 215 struct thread_state *next_thread;
215 216
216 struct bc_thread_state bc; 217 struct bc_thread_state bc;
218
219# ifdef HAVE_MPS
220 void *gc_info;
221# endif
222
217} GCALIGNED_STRUCT; 223} GCALIGNED_STRUCT;
218 224
219INLINE bool 225INLINE bool
@@ -337,6 +343,15 @@ int thread_select (select_func *func, int max_fds, fd_set *rfds,
337 343
338bool thread_check_current_buffer (struct buffer *); 344bool thread_check_current_buffer (struct buffer *);
339 345
346union aligned_thread_state
347{
348 struct thread_state s;
349 GCALIGNED_UNION_MEMBER
350};
351verify (GCALIGNED (union aligned_thread_state));
352
353extern union aligned_thread_state main_thread;
354
340INLINE_HEADER_END 355INLINE_HEADER_END
341 356
342#endif /* THREAD_H */ 357#endif /* THREAD_H */