mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
htl: Hide __pthread_attr's __schedparam type [BZ #23088]
The content of the structure is only used internally, so we can make __pthread_attr_getschedparam and __pthread_attr_setschedparam convert between the public sched_param type and an internal __sched_param. This allows to avoid to spuriously expose the sched_param type. This fixes BZ #23088.
This commit is contained in:
@@ -32,8 +32,8 @@ thread_attr_compare (const pthread_attr_t * left, const pthread_attr_t * right)
|
||||
struct __pthread_attr *ileft = (struct __pthread_attr *) left;
|
||||
struct __pthread_attr *iright = (struct __pthread_attr *) right;
|
||||
|
||||
return ileft->__schedparam.sched_priority
|
||||
== iright->__schedparam.sched_priority
|
||||
return ileft->__schedparam.__sched_priority
|
||||
== iright->__schedparam.__sched_priority
|
||||
&& ileft->__stackaddr == iright->__stackaddr
|
||||
&& ileft->__stacksize == iright->__stacksize
|
||||
&& ileft->__guardsize == iright->__guardsize
|
||||
|
Reference in New Issue
Block a user