* times.cc (hires_ms::prime): Don't escalate the priority.
This commit is contained in:
parent
409d1d50fd
commit
9a858ffa7f
@ -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>
|
2005-11-14 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* include/sys/elf64.h: Fix types to reflect linux usage.
|
* include/sys/elf64.h: Fix types to reflect linux usage.
|
||||||
|
@ -621,22 +621,22 @@ hires_ms::prime ()
|
|||||||
if (!inited)
|
if (!inited)
|
||||||
{
|
{
|
||||||
FILETIME f;
|
FILETIME f;
|
||||||
int priority = GetThreadPriority (GetCurrentThread ());
|
// int priority = GetThreadPriority (GetCurrentThread ());
|
||||||
stupid_printf ("priority %d", priority);
|
// stupid_printf ("priority %d", priority);
|
||||||
SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_TIME_CRITICAL);
|
// SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_TIME_CRITICAL);
|
||||||
stupid_printf ("SetThreadPriority to THREAD_PRIORITY_TIME_CRITICAL");
|
stupid_printf ("SetThreadPriority to THREAD_PRIORITY_TIME_CRITICAL");
|
||||||
initime_ms = timeGetTime ();
|
initime_ms = timeGetTime ();
|
||||||
stupid_printf ("after timeGetTime");
|
stupid_printf ("after timeGetTime");
|
||||||
GetSystemTimeAsFileTime (&f);
|
GetSystemTimeAsFileTime (&f);
|
||||||
stupid_printf ("after GetSystemTimeAsFileTime");
|
stupid_printf ("after GetSystemTimeAsFileTime");
|
||||||
SetThreadPriority (GetCurrentThread (), priority);
|
// SetThreadPriority (GetCurrentThread (), priority);
|
||||||
stupid_printf ("SetThreadPriority(%p, %d)", GetCurrentThread(), priority);
|
// stupid_printf ("SetThreadPriority(%p, %d)", GetCurrentThread(), priority);
|
||||||
|
|
||||||
inited = 1;
|
|
||||||
initime_us.HighPart = f.dwHighDateTime;
|
initime_us.HighPart = f.dwHighDateTime;
|
||||||
initime_us.LowPart = f.dwLowDateTime;
|
initime_us.LowPart = f.dwLowDateTime;
|
||||||
initime_us.QuadPart -= FACTOR;
|
initime_us.QuadPart -= FACTOR;
|
||||||
initime_us.QuadPart /= 10;
|
initime_us.QuadPart /= 10;
|
||||||
|
inited = 1;
|
||||||
}
|
}
|
||||||
stupid_printf ("returning");
|
stupid_printf ("returning");
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user