diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-05-20 17:45:24 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-05-20 17:45:24 +0200 |
commit | 4b51e4c142445c133d6075d2a68ce98e8ec6058b (patch) | |
tree | 07f97721f626ce051addf0d7fae512e586e9c619 /newlib/libc/include/stdio.h | |
parent | 450f557feee5dd4900e3fd4f16cbb6cabe89fbc6 (diff) | |
download | cygnal-4b51e4c142445c133d6075d2a68ce98e8ec6058b.tar.gz cygnal-4b51e4c142445c133d6075d2a68ce98e8ec6058b.tar.bz2 cygnal-4b51e4c142445c133d6075d2a68ce98e8ec6058b.zip |
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>
Diffstat (limited to 'newlib/libc/include/stdio.h')
0 files changed, 0 insertions, 0 deletions