PxDieService()
The PXROS die service.
- APPLIES TO
-
8.2.0
- SYNOPSIS
-
PxError_t PxDieService (void); - RETURN VALUES
-
-
PXROS error code
-
- ERROR CODES
-
PXERR_OPOOL_ILLOPOOLThe object pool is not valid
PXERR_GLOBAL_ILLEGAL_COREThe requested object pool is not on the same core
PXERR_TASK_ILLTASKThe task is not a valid task object
PXERR_INIT_ILLMCTYPEThe type for
PXMcSystemdefaultis different fromPXMcVarsized,PXMcVarsizedAdjustedandPXMcVarsizedAlignedPXERR_MC_ILLMCInvalid memory class
PXERR_MC_DAMAGED_BLOCKThe block in the memory class has been damaged
PXERR_MC_INCONSISTENCYInconsistency in memory class:
blkPXERR_MC_ILLALIGNInvalid memory block or size alignment in memory insert
PXERR_MC_ILLSIZEInsufficient block size
PXERR_INTERNAL_INCONSISTENCYInconsistency of internal structures
- DESCRIPTION
-
PxDieServiceremoves a task from the system which has calledPxDiebefore. This function has to be called by the PXROS service task after receiving the eventPXSERVICE_TASK_DIED.
- IMPLEMENTATION GUIDELINES
-
- Before call
-
-
No checks necessary.
-
- After call
-
-
The function returns
PXERR_NOERRORif the die service was successfully executed. Any other return value describes an error, which has to be interpreted (C).
-
- Best Practice
-
-
No restrictions.
-
- SEE ALSO
- USAGE
-
#include "pxdef.h" PxError_t err = PxDieService(); if (err != PXERR_NOERROR) { // Report error }