From ecb908f699a0de17c82057787f75e34090d39325 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 11 Nov 2005 16:42:15 +0000 Subject: * cygheap.h (init_cygheap::_gtod): Remove. * cygwin.din: Export clock_getres and clock_setres. * hires.h (hires_ms::minperiod): Delete declaration. (hires_ms::began_period): Ditto. (hires_ms::prime): Make void. (hires_ms::resolution): Just define here. (hires_ms::usecs): Remove unneeded argument. (gtod): Redeclare as a variable. * timer.cc (timer_thread): Eliminate argument to gtod.usecs(). (timer_tracker::gettime): Ditto. (timer_tracker::settime): Ditto. * times.cc (gettimeofday): Ditto. (hires_ms::began_period): Delete declaration. (hires_us::prime): Remove debugging. (hires_ms::prime): Make void. Eliminate period stuff. (hires_ms::usecs): Eliminate argument to gtod.usecs(). (hires_ms::resolution): New function. (clock_getres): Ditto. (clock_setres): Ditto. * version.h: Bump API version to 143. * include/cygwin/time.h: New file. --- winsup/cygwin/timer.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'winsup/cygwin/timer.cc') diff --git a/winsup/cygwin/timer.cc b/winsup/cygwin/timer.cc index e93653491..74319ea87 100644 --- a/winsup/cygwin/timer.cc +++ b/winsup/cygwin/timer.cc @@ -133,7 +133,7 @@ timer_thread (VOID *x) long sleep_ms; /* Account for delays in starting thread and sending the signal */ - now = gtod.usecs (false); + now = gtod.usecs (); sleep_us = sleepto_us - now; if (sleep_us > 0) { @@ -226,7 +226,7 @@ timer_tracker::settime (int in_flags, const itimerspec *value, itimerspec *ovalu || it_bad (value->it_interval)) return -1; - long long now = in_flags & TIMER_ABSTIME ? 0 : gtod.usecs (false); + long long now = in_flags & TIMER_ABSTIME ? 0 : gtod.usecs (); lock_timer_tracker here; cancel (); @@ -263,7 +263,7 @@ timer_tracker::gettime (itimerspec *ovalue) else { ovalue->it_interval = it_interval; - long long now = gtod.usecs (false); + long long now = gtod.usecs (); long long left_us = sleepto_us - now; if (left_us < 0) left_us = 0; -- cgit v1.2.3