mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 14:20:07 +00:00
NPTL: Fix pthread_create regression from default-sched.h refactoring.
This commit is contained in:
parent
6d3db89b12
commit
33cd1f74b8
@ -1,3 +1,9 @@
|
||||
2014-11-21 Roland McGrath <roland@hack.frob.com>
|
||||
|
||||
* nptl/pthread_create.c (__pthread_create_2_1): Set
|
||||
ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
|
||||
when copying values from IATTR into PD.
|
||||
|
||||
2014-11-21 Will Newton <will.newton@linaro.org>
|
||||
Andrew Pinski <andrew.pinski@caviumnetworks.com>
|
||||
|
||||
|
@ -596,10 +596,16 @@ __pthread_create_2_1 (newthread, attr, start_routine, arg)
|
||||
{
|
||||
/* Use the scheduling parameters the user provided. */
|
||||
if (iattr->flags & ATTR_FLAG_POLICY_SET)
|
||||
pd->schedpolicy = iattr->schedpolicy;
|
||||
{
|
||||
pd->schedpolicy = iattr->schedpolicy;
|
||||
pd->flags |= ATTR_FLAG_POLICY_SET;
|
||||
}
|
||||
if (iattr->flags & ATTR_FLAG_SCHED_SET)
|
||||
/* The values were validated in pthread_attr_setschedparam. */
|
||||
pd->schedparam = iattr->schedparam;
|
||||
{
|
||||
/* The values were validated in pthread_attr_setschedparam. */
|
||||
pd->schedparam = iattr->schedparam;
|
||||
pd->flags |= ATTR_FLAG_SCHED_SET;
|
||||
}
|
||||
|
||||
if ((pd->flags & (ATTR_FLAG_SCHED_SET | ATTR_FLAG_POLICY_SET))
|
||||
!= (ATTR_FLAG_SCHED_SET | ATTR_FLAG_POLICY_SET))
|
||||
|
Loading…
Reference in New Issue
Block a user