Download RI78V4 Real-Time Operating System User`s Manual: Coding

Transcript
RI78V4
CHAPTER 12 SERVICE CALLS
sns_dpn
Outline
Reference dispatch pending state.
C format
BOOL
sns_dpn ( void );
Assembly format
CALL
!!_sns_dpn
Parameter(s)
None.
Explanation
This service call acquires the system status type when this service call is issued (whether in dispatch pending state or
not).
When this service call is terminated normally, the acquired system state type (TRUE: dispatch pending state, FALSE:
dispatch not-pending state) is returned.
Note
The dispatch pending state designates the state in which explicit execution of dispatch processing (task
scheduling processing) is prohibited by issuing either the dis_dsp, loc_cpu, or iloc_cpu service call, as well as
the state during which processing of a non-task is being executed.
Return value
Macro
Value
Description
TRUE
1
Normal completion (dispatch pending state).
FALSE
0
Normal completion (other state).
R20UT0511EJ0101 Rev.1.01
Apr 01, 2012
Page 217 of 272