Purpose
This function can be used to set the inheritance attribute of the thread
scheduling property in the thread attribute object attr.
Class
Function
Argument Type and Attributes
- attr
- TYPE(f_pthread_attr_t), INTENT(OUT)
- inherit
- INTEGER(4), INTENT(IN)
Must contain 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 inherit is invalid.
