diff options
| author | Paul Eggert | 2019-04-24 13:35:14 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-04-24 13:37:15 -0700 |
| commit | 4c90369d77d3db1cbd37df7857e4706176fd7ba2 (patch) | |
| tree | 424f9c8b819feef66314316974290bd7f1edc8fd /src/thread.h | |
| parent | c5358e831f05cdd110f12a4260e6fb607c66c0b4 (diff) | |
| download | emacs-4c90369d77d3db1cbd37df7857e4706176fd7ba2.tar.gz emacs-4c90369d77d3db1cbd37df7857e4706176fd7ba2.zip | |
Simplify thread initialization and GC
* src/lisp.h (PVECHEADERSIZE): New macro.
(XSETPVECTYPESIZE): Use it.
* src/search.c (syms_of_search): No need to initialize or
staticpro last_thing_searched or saved_last_thing_searched, as
the thread code arranges for initialization and GC.
* src/thread.c (main_thread): Initialize statically.
(Fmake_mutex, Fmake_condition_variable, Fmake_thread):
Use ALLOCATE_ZEROED_PSEUDOVECTOR rather than zeroing by hand.
(mark_one_thread): No need to mark Lisp_Object members.
(init_main_thread, init_threads_once): Remove. All uses removed.
Diffstat (limited to 'src/thread.h')
| -rw-r--r-- | src/thread.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/thread.h b/src/thread.h index 0514669a87d..498b9909c9f 100644 --- a/src/thread.h +++ b/src/thread.h | |||
| @@ -287,7 +287,6 @@ extern void finalize_one_mutex (struct Lisp_Mutex *); | |||
| 287 | extern void finalize_one_condvar (struct Lisp_CondVar *); | 287 | extern void finalize_one_condvar (struct Lisp_CondVar *); |
| 288 | extern void maybe_reacquire_global_lock (void); | 288 | extern void maybe_reacquire_global_lock (void); |
| 289 | 289 | ||
| 290 | extern void init_threads_once (void); | ||
| 291 | extern void init_threads (void); | 290 | extern void init_threads (void); |
| 292 | extern void syms_of_threads (void); | 291 | extern void syms_of_threads (void); |
| 293 | extern bool main_thread_p (const void *); | 292 | extern bool main_thread_p (const void *); |