diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2023-07-06 16:39:13 +0100 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2023-07-18 14:18:45 +0100 |
commit | c431f6b7fe11edc1e1cb1a8aec1205ca1713402b (patch) | |
tree | 347827f481a42967d64dcd222a2146419023be24 /winsup/cygwin/spawn.cc | |
parent | 661f9f9c5a1e6f8fa74d450ee8273d6d1f30c5b2 (diff) | |
download | newlib-c431f6b7fe11edc1e1cb1a8aec1205ca1713402b.zip newlib-c431f6b7fe11edc1e1cb1a8aec1205ca1713402b.tar.gz newlib-c431f6b7fe11edc1e1cb1a8aec1205ca1713402b.tar.bz2 |
Cygwin: pthread: Take note of schedparam in pthread_create
Take note of schedparam in any pthread_attr_t passed to pthread_create.
postcreate() (racily, after the thread is actually created), sets the
scheduling priority if it's inherited, but precreate() doesn't store any
scheduling priority explicitly set via a non-default attr to
pthread_create, so schedparam.sched_priority has the default value of 0.
(I think this is another long-standing bug exposed by 4b51e4c1. Now we
don't lie about the actual thread priority, it's apparent it's not
really being set in this case.)
Fixes testcase priority2.
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Diffstat (limited to 'winsup/cygwin/spawn.cc')
0 files changed, 0 insertions, 0 deletions