diff options
author | Christopher Faylor <me@cgf.cx> | 2005-11-04 20:45:56 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-11-04 20:45:56 +0000 |
commit | 72319550c16dee661534dd3002de2101b6a08dd7 (patch) | |
tree | e25a597b0bb5379578ed9fc885fbd5ebe329b898 /winsup/cygwin/hires.h | |
parent | f359a29fc84fdb1eca5b46f0a274e6fc8bdbc2ee (diff) | |
download | cygnal-72319550c16dee661534dd3002de2101b6a08dd7.tar.gz cygnal-72319550c16dee661534dd3002de2101b6a08dd7.tar.bz2 cygnal-72319550c16dee661534dd3002de2101b6a08dd7.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/hires.h')
-rw-r--r-- | winsup/cygwin/hires.h | 5 |
1 files changed, 3 insertions, 2 deletions
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__*/ |