PxMsgReleaseAllMsg()
Release all messages of PxRuntask.
- APPLIES TO
-
8.2.0
- SYNOPSIS
-
PxError_t PxMsgReleaseAllMsg (void); - RETURN VALUES
-
-
PXROS error code
-
- ERROR CODES
-
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_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_MBX_ILLMBXThe passed mailbox 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 structure
- DESCRIPTION
-
PxMsgReleaseAllMsgwill release all messages where the caller is user. If the caller is the owner of the message,PxMsgForceReleasemarks this message to release. The flag forPxMsgAwaitRelis cleared and any defined release mailbox will be deleted.
- IMPLEMENTATION GUIDELINES
-
- Before call
-
-
No checks necessary.
-
- After call
-
-
The function returns
PXERR_NOERRORif the messages could be released. 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 = PxMsgReleaseAllMsg(); if (Err != PXERR_NOERROR) { // Report error }