On Tue, Apr 21, 2015 at 08:03:43PM -0700, Philip Guenther wrote:
>
> While we don't actually make use of thread scheduling attributes, we do
> support setting and retrieving them. However, it doesn't make any sense
> to let you set them in a pthread_attr_t...but then ignore that in
> pthread_create().
>
> Diff below deletes the duplicated sched_{policy,param} members from the
> internal struct pthread and instead use the values from the embedded
> struct pthread_attr. For bonus points, pay attention to the sched_inherit
> attribute and possibly set the values from the parent thread.
>
> Problem noted by natano of bitrig.
>
> ok?
The diff works fine here on amd64 and macppc. It allows the zeromq unit
tests (from github; they draw my attention to that problem) to pass
successfully.
natano