From 1b71ce005c0c57d94d74d8eb5b889d0676112f5d Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 21 Dec 2009 09:38:25 +0000 Subject: Throughout, revert ill-conceived replacement of hMainThread with GetCurrentThread/NtCurrentThread. * dcrt0.cc (dll_crt0_0): Duplicate main thread handle to hMainThread again. --- winsup/cygwin/miscfuncs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/miscfuncs.cc') diff --git a/winsup/cygwin/miscfuncs.cc b/winsup/cygwin/miscfuncs.cc index 8602761e6..29b8159ad 100644 --- a/winsup/cygwin/miscfuncs.cc +++ b/winsup/cygwin/miscfuncs.cc @@ -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 */ -- cgit v1.2.3