From 72319550c16dee661534dd3002de2101b6a08dd7 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 4 Nov 2005 20:45:56 +0000 Subject: * cygheap.h (init_cygheap::_gtod): New hires_ms element. * hires.h (hires_ms::minperiod): Remove static designation. (hires::began_period): New field. * signal.cc: Include headers required for cygheap.h now that gtod lives in the cygheap. * timer.c: Ditto. * times.cc (gtod): Delete variable. (gtod::minperiod): Ditto. (gtod::began_period): Define. (hires_ms::prime): Add more debugging output. Call timeBeginPeriod only when !began_period. --- winsup/cygwin/hires.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/hires.h') diff --git a/winsup/cygwin/hires.h b/winsup/cygwin/hires.h index 5dd0cf952..369b087e5 100644 --- a/winsup/cygwin/hires.h +++ b/winsup/cygwin/hires.h @@ -41,7 +41,8 @@ class hires_ms : hires_base { DWORD initime_ms; LARGE_INTEGER initime_us; - static UINT minperiod; + UINT minperiod; + static bool began_period; UINT prime (); public: LONGLONG usecs (bool justdelta); @@ -50,5 +51,5 @@ class hires_ms : hires_base }; -extern hires_ms gtod; +#define gtod cygheap->_gtod #endif /*__HIRES_H__*/ -- cgit v1.2.3