From 07bbb8e8a5e3eeb5aa44a45d0829f229edcc84e2 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 6 Sep 1995 19:35:31 +0000 Subject: Formerly timer-emul.c.~4~ --- pfinet/timer-emul.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pfinet/timer-emul.c b/pfinet/timer-emul.c index 721631af..7b7064d7 100644 --- a/pfinet/timer-emul.c +++ b/pfinet/timer-emul.c @@ -46,9 +46,9 @@ timer_function (any_t timerp) if (!err) { - begin_interrupt (); + mutex_lock (&global_lock); (*timer->function)(timer->data); - end_interrupt (); + mutex_unlock (&global_lock); } } @@ -81,10 +81,10 @@ del_timer (struct timer_list *timer) thread_suspend (thread); - /* Test again, because it might have run and completed the mach_msg after - we tested above and before we suspended, and we don't want to abort - the mach_port_destroy and certainly not anything inside the timer function\ - which might have started running. */ + /* Test again, because it might have run and completed the mach_msg + after we tested above and before we suspended, and we don't want + to abort the mach_port_destroy and certainly not anything inside + the timer function\ which might have started running. */ if (timer->thread) thread_abort (thread); -- cgit v1.2.3