This page is available in: en

td_rdy_que

Get Task Precedence

[C Language Interface]

INT ct = td_rdy_que ( PRI pri, ID list[], INT nent ) ;

[Parameters]

PRI	pri	Task priority


ID	list[]	Location of task ID list


INT	nent	Maximum number of list entries

[Return Parameters]

INT	ct	Number of priority pri tasks in a run state


	or	Error Code

[Description]

Gets a list of IDs of the tasks in a run state (READY state or RUN state) whose task @pri@ority 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 @pri@ority pri is passed in the return code. If return code > nent, this means that not all task IDs could be retrieved in this call.

Comments

Click here to Post a Comment