summaryrefslogtreecommitdiff
path: root/src/thread.h
diff options
context:
space:
mode:
authorPhilipp Stephani <p.stephani2@gmail.com>2018-01-17 23:28:46 +0100
committerPhilipp Stephani <phst@google.com>2018-01-18 20:14:36 +0100
commit694ee38f8b7bd10f1d0eae8cb251daea70b5c820 (patch)
tree53a4ebc808225e3c87bc8db48092e7f7ec8b7d92 /src/thread.h
parentebc1eea87b1309544ccb1a8a3ce53698cc2355d6 (diff)
downloademacs-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/thread.h')
-rw-r--r--src/thread.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/thread.h b/src/thread.h
index 5746512b799..5ab5e90c70d 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -303,6 +303,7 @@ extern void init_threads_once (void);
extern void init_threads (void);
extern void syms_of_threads (void);
extern bool main_thread_p (void *);
+extern bool in_current_thread (void);
typedef int select_func (int, fd_set *, fd_set *, fd_set *,
const struct timespec *, const sigset_t *);