diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-12-21 12:38:25 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-12-21 12:38:25 +0300 |
commit | 1b71ce005c0c57d94d74d8eb5b889d0676112f5d (patch) | |
tree | a1a2e75841061de20ec67d5c0e39c4ab7b5a34ac /winsup/cygwin/miscfuncs.cc | |
parent | 57a2873a5daa68a1ae3d4f4c3750d67d5223082e (diff) |
Throughout, revert ill-conceived replacement of hMainThread with
GetCurrentThread/NtCurrentThread.
* dcrt0.cc (dll_crt0_0): Duplicate main thread handle to hMainThread
again.
Diffstat (limited to 'winsup/cygwin/miscfuncs.cc')
-rw-r--r-- | winsup/cygwin/miscfuncs.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |