Changes the initial execution priority attribute of thread creation.
cma_attr_set_priority( attr, priority);
Argument Data Type Accessattr opaque cma_t_attr read priority opaque cma_t_priority read
#includevoid cma_attr_set_priority ( cma_t_attr *attr, cma_t_priority priority);
Low Mid Highcma_c_prio_fifo_ cma_c_prio_fifo_ cma_c_prio_fifo_max min mid cma_c_prio_rr_ cma_c_prio_rr_ cma_c_prio_rr_max min mid cma_c_prio_ cma_c_prio_ cma_c_prio_through_max through_min through_mid cma_c_prio_back_ cma_c_prio_back_ cma_c_prio_back_max min mid
The default priority is cma_c_prio_default_mid. (This symbol maps to cma_c_prio_through_mid.)
An application should specify priority only to express the urgency of executing the thread relative to other threads. Priority should not be used to control mutual exclusion when accessing shared data. With a sufficient number of processors executing, all ready threads, regardless of priority, can be executing simultaneously.
cma_e_badparam cma_e_existence cma_e_use_error