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:
Corinna Vinschen
2009-12-21 09:38:25 +00:00
parent 57a2873a5d
commit 1b71ce005c
5 changed files with 17 additions and 3 deletions

View File

@ -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 */