td_rdy_que
Get Task Precedence
INT ct = td_rdy_que ( PRI pri, ID list[], INT nent ) ;
PRI pri Task priority
ID list[] Location of task ID list
INT nent Maximum number of list entries
INT ct Number of priority pri tasks in a run state
or Error Code
Gets a list of IDs of the tasks in a run state (READY state or RUN state) whose task priority is pri,
arranged in order from highest to lowest precedence.
This function stores in the location designated in list up to nent task IDs, arranged in order of precedence starting from the highest-precedence task ID at the head of the list.
The number of tasks in a run state with priority pri is passed in the return code. If return code > nent, this means not all task IDs could be stored.

Comments