Throughout, revert ill-conceived replacement of hMainThread with
GetCurrentThread/NtCurrentThread. * dcrt0.cc (dll_crt0_0): Duplicate main thread handle to hMainThread again.
This commit is contained in:
@ -253,7 +253,7 @@ low_priority_sleep (DWORD secs)
|
||||
if (GetCurrentThreadId () == cygthread::main_thread_id)
|
||||
new_prio = THREAD_PRIORITY_LOWEST;
|
||||
else
|
||||
new_prio = GetThreadPriority (GetCurrentThread ());
|
||||
new_prio = GetThreadPriority (hMainThread);
|
||||
|
||||
if (curr_prio != new_prio)
|
||||
/* Force any threads in normal priority to be scheduled */
|
||||
|
Reference in New Issue
Block a user