diff options
author | Christopher Faylor <me@cgf.cx> | 2005-11-11 07:07:30 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-11-11 07:07:30 +0300 |
commit | b600843ae47042b2c13c37e022a5e51703691c0f (patch) | |
tree | 7b34d8cbd5632869abce64db499597a95931c7c1 /winsup/cygwin/times.cc | |
parent | c845f0c182fa2a9bd2d8f9961e1968ce8d725f54 (diff) |
* times.cc (hires_ms::prime): Comment out call to timeBeginPeriod for now.
(hires_ms::usecs): Call prime if haven't called began_period().
* param.h: Don't define stuff that is already defined in endian.h.
Diffstat (limited to 'winsup/cygwin/times.cc')
-rw-r--r-- | winsup/cygwin/times.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc index 3d762464f..be091dad2 100644 --- a/winsup/cygwin/times.cc +++ b/winsup/cygwin/times.cc @@ -649,7 +649,9 @@ stupid_printf ("inited %d, minperiod %u, began_period %d", minperiod, began_peri if (!began_period) { +#if 0 timeBeginPeriod (minperiod); +#endif began_period = true; stupid_printf ("timeBeginPeriod called"); } @@ -681,7 +683,7 @@ LONGLONG hires_ms::usecs (bool justdelta) { stupid_printf ("before call to prime(), minperiod %u, process priority %d", minperiod, GetThreadPriority (GetCurrentThread ())); - if (!minperiod) /* NO_COPY variable */ + if (!inited || !began_period) /* NO_COPY variable */ prime (); stupid_printf ("after call to prime(), process priority %d", GetThreadPriority (GetCurrentThread ())); |