PxDie()
Terminate the calling task.
- APPLIES TO
-
8.2.0
- SYNOPSIS
-
PxError_t PxDie (void); - RETURN VALUES
-
-
PXROS error code
-
- ERROR CODES
-
PXERR_MBX_TASKWAITSThere are waiting tasks at the private mailbox
PXERR_TASK_DIESRV_NOT_INITEDdieservernot initializedPXERR_MBX_ILLMBXInvalid mailbox in mailbox command
PXERR_MSG_ILLUSERThe calling task is not the user of the message
PXERR_PROT_ILL_HANDLEThe associated protection handle is not valid
PXERR_REQUEST_INVALID_PARAMETERRequest with invalid parameter
PXERR_MSG_ILLMSGThe passed message handle is invalid
PXERR_MSG_ILLOWNERThe message has no owner
PXERR_MC_ILLMCThe memory class for the message is invalid
PXERR_OPOOL_ILLOPOOLThe passed object pool handle is invalid
PXERR_INIT_ILLMCTYPEThe type for
PXMcSystemdefaultis different fromPXMcVarsized,PXMcVarsizedAdjustedandPXMcVarsizedAlignedPXERR_MC_DAMAGED_BLOCKThe block in 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_GLOBAL_ILLEGAL_COREThe requested object pool is not on the same core
PXERR_TASK_ILLTASKThe task is not a valid task object
PXERR_INTERNAL_INCONSISTENCYInconsistency of internal structures
- DESCRIPTION
-
PxDieterminates the calling task, queues it for removing byPxDieServiceand sends the eventPXSERVICE_TASK_DIEDto the PXROS service task. The PXROS service task must be initialized before callingPxDie. If no error occurs, the call does not return.
- IMPLEMENTATION GUIDELINES
-
- Before call
-
-
No checks necessary.
-
- After call
-
-
The function does not return on success, else it returns an error, which has to be interpreted (C).
-
- Best Practice
-
-
No restrictions.
-
- SEE ALSO
- USAGE
-
#include "pxdef.h" PxError_t err = PxDie(); if (err != PXERR_NOERROR) { // Report error }