Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-12-12 07:15:32 +0300
committerChristopher Faylor <me@cgf.cx>2003-12-12 07:15:32 +0300
commitc76d70d7c04797ab9c24ae134d602b78d201b052 (patch)
tree3f6a9cee5f9f8b91a60445bea53eab83f686bef8 /winsup/cygwin/miscfuncs.cc
parent97cb9b9de404248a3c117a2f391696732ce6e860 (diff)
* miscfuncs.cc (low_priority_sleep): Correct thinko which caused SetPriority to
be called unnecessarily. * thread.cc (pthread::init_main_thread): Call new create_cancel_event function. (pthread::precreate): Ditto. (pthread::postcreate): Remove cancel_event creation. (pthread::create_cancel_event): Define new function. * thread.h (pthread::create_cancel_event): Declare new function.
Diffstat (limited to 'winsup/cygwin/miscfuncs.cc')
-rw-r--r--winsup/cygwin/miscfuncs.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/miscfuncs.cc b/winsup/cygwin/miscfuncs.cc
index 8d0c5b3dc..37ef3a49c 100644
--- a/winsup/cygwin/miscfuncs.cc
+++ b/winsup/cygwin/miscfuncs.cc
@@ -334,7 +334,7 @@ low_priority_sleep (DWORD secs)
SetThreadPriority (thisthread, new_prio);
Sleep (secs);
- if (!staylow || curr_prio == new_prio)
+ if (!staylow && curr_prio != new_prio)
SetThreadPriority (thisthread, curr_prio);
}