-   
 
 get_pri
 iget_pri
 
-   
 
 Reference task current priority.
 
 ER      get_pri (ID tskid, PRI *p_tskpri);
 ER      iget_pri (ID tskid, PRI *p_tskpri);
 
| 
 | 
 | 
 | 
| 
 | 
 ID      tskid;
 
 | 
 Value:	ID number of the task.
  
 | 
| 
 | 
 PRI     *p_tskpri;
 
 | 
 Pointer to the area returning the current priority of the task.
  
 | 
 
 This service call stores the current priority of the task specified by parameter 
tskid in the area specified by parameter 
p_tskpri.
 
 
| 
 | 
 | 
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
 -	 When this service call was issued from a non-task,  TSK_SELF was specified for  tskid.
  
 | 
| 
 | 
 | 
 -	 This service call was issued in the CPU locked state.
  
 -	 This service call was issued in the status "PSW.IPL > kernel interrupt mask level".
  
 Note	 When the iget_pri is issued from task or the get_pri is issued from non-task, the context error is not detected and normal operation of the system is not guaranteed.
  
 | 
| 
 | 
 | 
 -	 Specified task is in the DORMANT state.
  
 |