Commit 514a6310 authored by Austin Seipp's avatar Austin Seipp
Browse files

rts: detabify/dewhitespace Timer.c


Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>
parent dea58def
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
/* /*
* The interval timer is used for profiling and for context switching in the * The interval timer is used for profiling and for context switching in the
* threaded build. * threaded build.
* *
* This file defines the platform-independent view of interval timing, relying * This file defines the platform-independent view of interval timing, relying
* on platform-specific services to install and run the timers. * on platform-specific services to install and run the timers.
...@@ -45,7 +45,7 @@ handle_tick(int unused STG_UNUSED) ...@@ -45,7 +45,7 @@ handle_tick(int unused STG_UNUSED)
if (RtsFlags.ConcFlags.ctxtSwitchTicks > 0) { if (RtsFlags.ConcFlags.ctxtSwitchTicks > 0) {
ticks_to_ctxt_switch--; ticks_to_ctxt_switch--;
if (ticks_to_ctxt_switch <= 0) { if (ticks_to_ctxt_switch <= 0) {
ticks_to_ctxt_switch = RtsFlags.ConcFlags.ctxtSwitchTicks; ticks_to_ctxt_switch = RtsFlags.ConcFlags.ctxtSwitchTicks;
contextSwitchAllCapabilities(); /* schedule a context switch */ contextSwitchAllCapabilities(); /* schedule a context switch */
} }
} }
...@@ -88,7 +88,7 @@ handle_tick(int unused STG_UNUSED) ...@@ -88,7 +88,7 @@ handle_tick(int unused STG_UNUSED)
} }
// This global counter is used to allow multiple threads to stop the // This global counter is used to allow multiple threads to stop the
// timer temporarily with a stopTimer()/startTimer() pair. If // timer temporarily with a stopTimer()/startTimer() pair. If
// timer_enabled == 0 timer is enabled // timer_enabled == 0 timer is enabled
// timer_disabled == N, N > 0 timer is disabled by N threads // timer_disabled == N, N > 0 timer is disabled by N threads
// When timer_enabled makes a transition to 0, we enable the timer, // When timer_enabled makes a transition to 0, we enable the timer,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment