From 7fea679b6f4c376cf068eaee987d3ff4e415b23e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 6 Sep 1996 15:16:19 +0000 Subject: changed _TOD_Is_set from a function to a boolean variable --- c/src/exec/score/src/coretod.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'c/src/exec/score/src/coretod.c') diff --git a/c/src/exec/score/src/coretod.c b/c/src/exec/score/src/coretod.c index 8c7fb93d79..9da6f11510 100644 --- a/c/src/exec/score/src/coretod.c +++ b/c/src/exec/score/src/coretod.c @@ -54,6 +54,9 @@ void _TOD_Handler_initialization( TOD_MICROSECONDS_PER_SECOND / microseconds_per_tick; _Watchdog_Initialize( &_TOD_Seconds_watchdog, _TOD_Tickle, 0, NULL ); + + _TOD_Is_set = FALSE; + _TOD_Activate( _TOD_Ticks_per_second ); } /*PAGE @@ -93,6 +96,7 @@ void _TOD_Set( _TOD_Current = *the_tod; _TOD_Seconds_since_epoch = seconds_since_epoch; + _TOD_Is_set = TRUE; _TOD_Activate( ticks_until_next_second ); _Thread_Enable_dispatch(); -- cgit v1.2.3