summaryrefslogtreecommitdiff
path: root/src/atimer.c
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2004-12-15 21:40:41 +0000
committerJan Djärv <jan.h.d@swipnet.se>2004-12-15 21:40:41 +0000
commit333f1b6f78ea3923fd49c8bb7f4d4aef39549591 (patch)
tree9f8044dff23e460bb11e8aa324cec148e1ca89b0 /src/atimer.c
parentfecad3f6597e12724d2329354905a99450347d0c (diff)
downloademacs-333f1b6f78ea3923fd49c8bb7f4d4aef39549591.tar.gz
* syssignal.h: Declare main_thread.
(SIGNAL_THREAD_CHECK): New macro. * keyboard.c (input_available_signal): Move thread checking code to macro SIGNAL_THREAD_CHECK and call that macro. (interrupt_signal): Call SIGNAL_THREAD_CHECK. * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c. * emacs.c: Define main_thread. (main): Initialize main_thread. (handle_USR1_signal, handle_USR2_signal, fatal_error_signal) (memory_warning_signal): Call SIGNAL_THREAD_CHECK. * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK. * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK. * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK. * process.c (send_process_trap, sigchld_handler): Call SIGNAL_THREAD_CHECK. * data.c (arith_error): Call SIGNAL_THREAD_CHECK. * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
Diffstat (limited to 'src/atimer.c')
-rw-r--r--src/atimer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/atimer.c b/src/atimer.c
index 7410cad0244..ff5b8faaf36 100644
--- a/src/atimer.c
+++ b/src/atimer.c
@@ -364,6 +364,8 @@ alarm_signal_handler (signo)
{
EMACS_TIME now;
+ SIGNAL_THREAD_CHECK (signo);
+
EMACS_GET_TIME (now);
pending_atimers = 0;