Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-11-03 17:59:23 +0300
committerChristopher Faylor <me@cgf.cx>2005-11-03 17:59:23 +0300
commit314f743e1e089157f5916a410a00b4170df2d0a6 (patch)
tree4a2c65ae9a93afb27876977059f6f4906df6a037
parentcdf53001559291d50857ff85888a31b4e1cf315a (diff)
* times.cc (hires_ms::prime): Add lots of temporary debugging output.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/times.cc9
2 files changed, 13 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 46962eeb7..25985770a 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2005-11-03 Christopher Faylor <cgf@timesys.com>
+
+ * times.cc (hires_ms::prime): Add lots of temporary debugging output.
+
2005-11-02 Christopher Faylor <cgf@timesys.com>
* times.cc (hires_ms::minperiod): Make copy-on-fork.
diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc
index 09cb3aae5..9d38043ca 100644
--- a/winsup/cygwin/times.cc
+++ b/winsup/cygwin/times.cc
@@ -629,22 +629,30 @@ hires_ms::prime ()
TIMECAPS tc;
FILETIME f;
+debug_printf ("entering, minperiod %d", minperiod);
if (!minperiod)
if (timeGetDevCaps (&tc, sizeof (tc)) != TIMERR_NOERROR)
minperiod = 1;
else
{
+debug_printf ("timeGetDevCaps succeeded");
minperiod = min (max (tc.wPeriodMin, 1), tc.wPeriodMax);
timeBeginPeriod (minperiod);
}
+debug_printf ("inited %d");
if (!inited)
{
int priority = GetThreadPriority (GetCurrentThread ());
+debug_printf ("priority %d", priority);
SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_TIME_CRITICAL);
+debug_printf ("SetThreadPriority to THREAD_PRIORITY_TIME_CRITICAL");
initime_ms = timeGetTime ();
+debug_printf ("after timeGetTime");
GetSystemTimeAsFileTime (&f);
+debug_printf ("after GetSystemTimeAsFileTime");
SetThreadPriority (GetCurrentThread (), priority);
+debug_printf ("SetThreadPriority(%p, %d)", GetCurrentThread(), priority);
inited = 1;
initime_us.HighPart = f.dwHighDateTime;
@@ -652,6 +660,7 @@ hires_ms::prime ()
initime_us.QuadPart -= FACTOR;
initime_us.QuadPart /= 10;
}
+debug_printf ("returning");
return minperiod;
}