Home | History | Annotate | Download | only in pthread_getschedparam
      1 <assertions>
      2 
      3   <assertion id="1" tag="ref:XSH6:33172:33182">
      4   The pthread_getschedparam( ) function shall retrieve the scheduling
      5   policy and scheduling parameters for the thread whose thread ID is
      6   given by thread and shall store those values in
      7   policy and param, respectively. The priority value returned from
      8   pthread_getschedparam( ) shall be
      9   the value specified by the most recent pthread_setschedparam( ),
     10   pthread_setschedprio( ), or pthread_create( ) call affecting the
     11   target thread. It shall not reflect any temporary adjustments to
     12   its priority as a result of any priority inheritance or ceiling functions.
     13   </assertion>
     14 
     15   <assertion id="2" tag="ref:XSH6:33189:33199">
     16   TSP If _POSIX_THREAD_SPORADIC_SERVER is defined, then the policy argument may have the
     17   value SCHED_SPORADIC, with the exception for the pthread_setschedparam( ) function
     18   that if the scheduling policy was not SCHED_SPORADIC at the time of the call,
     19   it is implementation-defined whether the function is supported; in other words,
     20   the implementation need not allow the application to dynamically change the
     21   scheduling policy to SCHED_SPORADIC. The sporadic server scheduling policy
     22   has the associated parameters sched_ss_low_priority, sched_ss_repl_period,
     23   sched_ss_init_budget, sched_priority, and sched_ss_max_repl. The specified
     24   sched_ss_repl_period shall be greater than or equal to the specified
     25   sched_ss_init_budget for the function to succeed; if it is not, then the function
     26   shall fail. The value of sched_ss_max_repl shall be within the inclusive
     27   range [1,{SS_REPL_MAX}] for the function to succeed; if not, the function
     28   shall fail.
     29   </assertion>
     30 
     31   <assertion id="3" tag="ref:XSH6:33203:33204">
     32   If successful, the pthread_getschedparam( ) and pthread_setschedparam( )
     33   functions shall return zero; otherwise, an error number shall be returned
     34   to indicate the error.
     35   </assertion>
     36 
     37   <assertion id="4" tag="ref:XSH6TC2:34057:34057">
     38   The function never returns EINTR.
     39   </assertion>
     40 </assertions>
     41