]> sourceware.org Git - newlib-cygwin.git/commit
Fix thread priority handling
authorCorinna Vinschen <corinna@vinschen.de>
Fri, 20 May 2016 15:45:24 +0000 (17:45 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 20 May 2016 15:45:24 +0000 (17:45 +0200)
commit4b51e4c142445c133d6075d2a68ce98e8ec6058b
tree07f97721f626ce051addf0d7fae512e586e9c619
parent450f557feee5dd4900e3fd4f16cbb6cabe89fbc6
Fix thread priority handling

So far pthread::postcreate() only sets the thread priority at all, only
if the inherit-scheduler attribute is PTHREAD_EXPLICIT_SCHED.  This
completely ignores the PTHREAD_INHERIT_SCHED case, since in contrast
to POSIX, a thread does not inherit its priority from the creating
thread, but always starts with THREAD_PRIORITY_NORMAL.

pthread_getschedparam() only returns what's stored in the thread attributes,
not the actual thread priority.

This patch fixes both problems.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/thread.cc
This page took 0.030754 seconds and 5 git commands to generate.