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-16 08:12:11 +0300
committerChristopher Faylor <me@cgf.cx>2005-11-16 08:12:11 +0300
commit9a858ffa7f2dc7c9e733636c9637eed45a501384 (patch)
treee70cfc21e839151cc69d409f92a774d9128f9154
parent409d1d50fdda329c9d33f13524f3034e10ed11fe (diff)
* times.cc (hires_ms::prime): Don't escalate the priority.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/times.cc12
2 files changed, 10 insertions, 6 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 46e3ae7c7..38584e0c5 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2005-11-16 Christopher Faylor <cgf@timesys.com>
+
+ * times.cc (hires_ms::prime): Don't escalate the priority.
+
2005-11-14 Christopher Faylor <cgf@timesys.com>
* include/sys/elf64.h: Fix types to reflect linux usage.
diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc
index 9edd460c4..87eab4f0e 100644
--- a/winsup/cygwin/times.cc
+++ b/winsup/cygwin/times.cc
@@ -621,22 +621,22 @@ hires_ms::prime ()
if (!inited)
{
FILETIME f;
- int priority = GetThreadPriority (GetCurrentThread ());
-stupid_printf ("priority %d", priority);
- SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_TIME_CRITICAL);
+ // int priority = GetThreadPriority (GetCurrentThread ());
+// stupid_printf ("priority %d", priority);
+ // SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_TIME_CRITICAL);
stupid_printf ("SetThreadPriority to THREAD_PRIORITY_TIME_CRITICAL");
initime_ms = timeGetTime ();
stupid_printf ("after timeGetTime");
GetSystemTimeAsFileTime (&f);
stupid_printf ("after GetSystemTimeAsFileTime");
- SetThreadPriority (GetCurrentThread (), priority);
-stupid_printf ("SetThreadPriority(%p, %d)", GetCurrentThread(), priority);
+ // SetThreadPriority (GetCurrentThread (), priority);
+// stupid_printf ("SetThreadPriority(%p, %d)", GetCurrentThread(), priority);
- inited = 1;
initime_us.HighPart = f.dwHighDateTime;
initime_us.LowPart = f.dwLowDateTime;
initime_us.QuadPart -= FACTOR;
initime_us.QuadPart /= 10;
+ inited = 1;
}
stupid_printf ("returning");
return;