SWI_isSWI
2-442
C Interface
Syntax
result = SWI_isSWI(Void);
Parameters
Void
Return Value
Bool
result;
/* TRUE if in SWI context, FALSE otherwise */
Reentrant
yes
Description
This macro returns TRUE when it is called within the context of a SWI or
PRD function. This applies no matter whether the SWI was posted by an
HWI, TSK, or IDL thread. This macro returns FALSE in all other contexts.
In previous versions of DSP/BIOS, calling SWI_isSWI() from a task
switch hook resulted in TRUE. This is no longer the case; task switch
hooks are identified as part of the TSK context.
See Also
SWI_isSWI
Check to see if called in the context of a SWI