summaryrefslogtreecommitdiff
path: root/pfinet
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-09-06 19:35:31 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-09-06 19:35:31 +0000
commit07bbb8e8a5e3eeb5aa44a45d0829f229edcc84e2 (patch)
treed15bfb6fc70a8c5c4bfebce92cbcaf6a4f82412f /pfinet
parent5eb11ac75440e8ad1354b6514e28d7f697809acc (diff)
Formerly timer-emul.c.~4~
Diffstat (limited to 'pfinet')
-rw-r--r--pfinet/timer-emul.c12
1 files 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);