Purpose
This function can be used to query the inheritance scheduling attribute in
the thread attribute object attr. The current setting will be
returned through the argument inherit.
Class
Function
Argument Type and Attributes
- attr
- TYPE(f_pthread_attr_t), INTENT(OUT)
- inherit
- INTEGER(4)
On return from the function, inherit contains one of the following
values:
- PTHREAD_INHERIT_SCHED:
- indicating that newly created threads will inherit the scheduling property
of the parent thread and ignore the scheduling property of the thread
attribute object used to create them.
- PTHREAD_EXPLICIT_SCHED:
- the scheduling property in the thread attribute object will be assigned to
the newly created threads when it is used to create them.
Result Type and Attributes
INTEGER(4)
Result Value
On successful completion, this function returns 0. Otherwise
this function returns the following error.
- EINVAL
- The argument attr is invalid.
