diff options
author | Ken Raeburn <raeburn@raeburn.org> | 2015-11-01 01:42:21 -0400 |
---|---|---|
committer | Ken Raeburn <raeburn@raeburn.org> | 2015-11-01 01:42:21 -0400 |
commit | 39372e1a1032521be74575bb06f95a3898fbae30 (patch) | |
tree | 754bd242a23d2358ea116126fcb0a629947bd9ec /src/thread.h | |
parent | 6a3121904d76e3b2f63007341d48c5c1af55de80 (diff) | |
parent | e11aaee266da52937a3a031cb108fe13f68958c3 (diff) | |
download | emacs-39372e1a1032521be74575bb06f95a3898fbae30.tar.gz |
merge from trunk
Diffstat (limited to 'src/thread.h')
-rw-r--r-- | src/thread.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/thread.h b/src/thread.h index 2b9963423db..d155837ccad 100644 --- a/src/thread.h +++ b/src/thread.h @@ -51,16 +51,11 @@ struct thread_state waiting on. */ Lisp_Object event_object; - /* m_gcprolist must be the first non-lisp field. */ - /* Recording what needs to be marked for gc. */ - struct gcpro *m_gcprolist; -#define gcprolist (current_thread->m_gcprolist) - + /* m_byte_stack_list must be the first non-lisp field. */ /* A list of currently active byte-code execution value stacks. Fbyte_code adds an entry to the head of this list before it starts processing byte-code, and it removed the entry again when it is - done. Signalling an error truncates the list analoguous to - gcprolist. */ + done. Signalling an error truncates the list. */ struct byte_stack *m_byte_stack_list; #define byte_stack_list (current_thread->m_byte_stack_list) @@ -83,9 +78,8 @@ struct thread_state struct handler *m_handlerlist; #define handlerlist (current_thread->m_handlerlist) - /* Count levels of GCPRO to detect failure to UNGCPRO. */ - int m_gcpro_level; -#define gcpro_level (current_thread->m_gcpro_level) + struct handler *m_handlerlist_sentinel; +#define handlerlist_sentinel (current_thread->m_handlerlist_sentinel) /* Current number of specbindings allocated in specpdl. */ ptrdiff_t m_specpdl_size; @@ -234,11 +228,11 @@ extern void init_threads_once (void); extern void init_threads (void); extern void syms_of_threads (void); -typedef int select_func (int, SELECT_TYPE *, SELECT_TYPE *, SELECT_TYPE *, - EMACS_TIME *, sigset_t *); +typedef int select_func (int, fd_set *, fd_set *, fd_set *, + struct timespec *, sigset_t *); -int thread_select (select_func *func, int max_fds, SELECT_TYPE *rfds, - SELECT_TYPE *wfds, SELECT_TYPE *efds, EMACS_TIME *timeout, +int thread_select (select_func *func, int max_fds, fd_set *rfds, + fd_set *wfds, fd_set *efds, struct timespec *timeout, sigset_t *sigmask); bool thread_check_current_buffer (struct buffer *); |