diff options
author | Philipp Stephani <p.stephani2@gmail.com> | 2018-01-17 23:28:46 +0100 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2018-01-18 20:14:36 +0100 |
commit | 694ee38f8b7bd10f1d0eae8cb251daea70b5c820 (patch) | |
tree | 53a4ebc808225e3c87bc8db48092e7f7ec8b7d92 /src/emacs-module.c | |
parent | ebc1eea87b1309544ccb1a8a3ce53698cc2355d6 (diff) | |
download | emacs-694ee38f8b7bd10f1d0eae8cb251daea70b5c820.tar.gz |
Fix module support if threads are disabled (Bug#30106)
* src/systhread.c (sys_thread_equal): New function.
* src/thread.c (in_current_thread): Move from emacs-module.c; use
sys_thread_equal.
Diffstat (limited to 'src/emacs-module.c')
-rw-r--r-- | src/emacs-module.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/emacs-module.c b/src/emacs-module.c index 4ee4014b4e1..3a85421e83a 100644 --- a/src/emacs-module.c +++ b/src/emacs-module.c @@ -805,18 +805,6 @@ module_function_arity (const struct Lisp_Module_Function *const function) /* Helper functions. */ -static bool -in_current_thread (void) -{ - if (current_thread == NULL) - return false; -#ifdef HAVE_PTHREAD - return pthread_equal (pthread_self (), current_thread->thread_id); -#elif defined WINDOWSNT - return GetCurrentThreadId () == current_thread->thread_id; -#endif -} - static void module_assert_thread (void) { |