* cygthread.cc (cygthread::cygthread): Be more noisy about odd condition.
* miscfuncs.cc (low_priority_sleep): Sleep in regular priority if that's what we're currently running at.
This commit is contained in:
parent
65f207e8b9
commit
d5223b2b0a
|
@ -1,3 +1,10 @@
|
|||
2003-01-09 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* cygthread.cc (cygthread::cygthread): Be more noisy about odd
|
||||
condition.
|
||||
* miscfuncs.cc (low_priority_sleep): Sleep in regular priority if
|
||||
that's what we're currently running at.
|
||||
|
||||
2003-01-09 Thomas Pfaff <tpfaff@gmx.net>
|
||||
|
||||
* include/semaphore.h: Modify typedef for sem_t.
|
||||
|
|
|
@ -177,7 +177,7 @@ cygthread::cygthread (LPTHREAD_START_ROUTINE start, LPVOID param,
|
|||
low_priority_sleep (0);
|
||||
#else
|
||||
{
|
||||
thread_printf ("waiting for %s<%p> to become active", __name, h);
|
||||
system_printf ("waiting for %s<%p> to become active", __name, h);
|
||||
low_priority_sleep (0);
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -306,13 +306,12 @@ low_priority_sleep (DWORD secs)
|
|||
staylow = true;
|
||||
}
|
||||
|
||||
if (curr_prio != THREAD_PRIORITY_NORMAL)
|
||||
/* Force any threads in normal priority to be scheduled */
|
||||
SetThreadPriority (thisthread, THREAD_PRIORITY_NORMAL);
|
||||
Sleep (0);
|
||||
|
||||
SetThreadPriority (thisthread, THREAD_PRIORITY_IDLE);
|
||||
Sleep (secs);
|
||||
if (!staylow)
|
||||
|
||||
if (!staylow || curr_prio == THREAD_PRIORITY_NORMAL)
|
||||
SetThreadPriority (thisthread, curr_prio);
|
||||
return curr_prio;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue