This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_pthread_set_properties_self

Function Documentation

int rc_pthread_set_properties_self(int policy, int priority)

Lets a thread change it’s own scheduler policy and priority while running.

Parameters
  • policy[in] SCHED_FIFO SCHED_RR or SCHED_OTHER

  • priority[in] between 1-99 for FIFO and RR, defualt 0 for SCHED_OTHER

Returns

0 on success or -1 on failure