aboutsummaryrefslogtreecommitdiffstats
path: root/src/thread.c
diff options
context:
space:
mode:
authorMichael Albinus2018-08-31 09:04:13 +0200
committerMichael Albinus2018-08-31 09:04:13 +0200
commit76978462bbb55eb4b5cfe4d70856e18ed1e21076 (patch)
tree74987dc6942052cb785b3d8e4b4b6c5076c9aa33 /src/thread.c
parent7c0675af3c9aa7971c37aa9e7afdceae6bfea767 (diff)
downloademacs-76978462bbb55eb4b5cfe4d70856e18ed1e21076.tar.gz
emacs-76978462bbb55eb4b5cfe4d70856e18ed1e21076.zip
Construct a thread_event only if THREADS_ENABLED
* src/thread.c (Fthread_signal): Construct a thread_event only if THREADS_ENABLED.
Diffstat (limited to 'src/thread.c')
-rw-r--r--src/thread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/thread.c b/src/thread.c
index 78cb2161993..081569f8a38 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -875,6 +875,7 @@ If THREAD is the main thread, just the error message is shown. */)
875 if (tstate == current_thread) 875 if (tstate == current_thread)
876 Fsignal (error_symbol, data); 876 Fsignal (error_symbol, data);
877 877
878#ifdef THREADS_ENABLED
878 if (main_thread_p (tstate)) 879 if (main_thread_p (tstate))
879 { 880 {
880 /* Construct an event. */ 881 /* Construct an event. */
@@ -889,6 +890,7 @@ If THREAD is the main thread, just the error message is shown. */)
889 } 890 }
890 891
891 else 892 else
893#endif
892 { 894 {
893 /* What to do if thread is already signaled? */ 895 /* What to do if thread is already signaled? */
894 /* What if error_symbol is Qnil? */ 896 /* What if error_symbol is Qnil? */