TSK_isTSK
2-498
C Interface
Syntax
result = TSK_isTSK(Void);
Parameters
Void
Return Value
Bool
result;
/* TRUE if in TSK context, FALSE otherwise */
Reentrant
yes
Description
This macro returns TRUE when it is called within the context of a TSK or
IDL function. It returns FALSE in all other contexts.
TSK_isTSK() API returns TRUE when the current thread is neither a HWI
nor a SWI. Thus, TSK_isTSK() returns TRUE when it is invoked within a
task thread, main(), or a task switch hook.
In previous versions of DSP/BIOS, calling the context checking functions
from main() resulted in TRUE for HWI_isHWI(). And, calling the context
checking functions from a task switch hook resulted in TRUE for
SWI_isSWI(). This is no longer the case; they are identified as part of the
TSK context.
In applications that contain no task threads, TSK_isTSK() now returns
TRUE from main() and from the IDL threads.
See Also
TSK_isTSK
Check to see if called in the context of a TSK