Home | History | Annotate | Download | only in pthread_attr_setinheritsched
      1 <assertions>
      2   <assertion id="1" tag="ref:XSH6:31331:31332">
      3 pthread_attr_setinheritsched shall set the inheritsched attribute in the attr argument.
      4   </assertion>
      5   <assertion id="2" tag="ref:XSH6:31333:31345">
      6 When pthread_create uses the attributes objects, the inheritsched attribute determines how the other scheduling attributes of the created thread shall be set.
      7 PTHREAD_INHERIT_SCHED
      8    specifies that the thread scheduling attributes shall be inherited from the creating thread, and the scheduling attributes in this attr argument shall be ignored.
      9 PTHREAD_EXPLICIT_SCHED
     10    specifies that the thread scheduling attributes shall be set to the corresponding values from this attributes object.
     11 The schedpolicy, schedparam, cotentionscope are affected by the inherisched attribute.
     12   </assertion>
     13   <assertion id="3" tag="ref:XSH6:31347:31347">
     14 If successful, pthread_attr_setinheritsched functions return zero.
     15   </assertion>
     16   <assertion id="4" tag="ref:XSH6:31348:31351">
     17 If fail, an error number shall be returned to indicate the error.
     18 [EINVAL] The value of inheritsched is not valid.
     19   </assertion>
     20   <assertion id="5" tag="ref:XSH6:31352:31353">
     21 If fail, an error number shall be returned to indicate the error.
     22 [ENOTSUP] An attempt was made to set the attribute to an unsupported value.
     23   </assertion>
     24   <assertion id="6" tag="ref:XSH6:31353:31353">
     25 Shall not return an error code of [EINTR]
     26   </assertion>
     27 </assertions>
     28