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_ILLMSG
The passed message handle is invalid
PXERR_MSG_ILLOWNER
The message has no owner
PXERR_MC_ILLMC
The memory class for the message is invalid
PXERR_OPOOL_ILLOPOOL
The passed object pool handle is invalid
PXERR_MSG_ILLUSER
The calling task is not the user of the message
PXERR_PROT_ILL_HANDLE
The associated protection handle is not valid
PXERR_REQUEST_INVALID_PARAMETER
Request with invalid parameter
PXERR_MBX_ILLMBX
The passed mailbox handle is invalid
PXERR_INIT_ILLMCTYPE
The type for PXMcSystemdefault is different from PXMcVarsized, PXMcVarsizedAdjusted and PXMcVarsizedAligned
PXERR_MC_DAMAGED_BLOCK
The block in memory class has been damaged
PXERR_MC_INCONSISTENCY
Inconsistency in memory class: blk
PXERR_MC_ILLALIGN
Invalid memory block or size alignment in memory insert
PXERR_MC_ILLSIZE
Insufficient block size
PXERR_GLOBAL_ILLEGAL_CORE
The requested object pool is not on the same core
PXERR_TASK_ILLTASK
The task is not a valid task object
PXERR_INTERNAL_INCONSISTENCY
Inconsistency of internal structure
- DESCRIPTION
-
PxMsgReleaseAllMsg will release all messages where the caller is user. If the caller is the owner of the message, PxMsgForceRelease marks this message to release. The flag for PxMsgAwaitRel is cleared and any defined release mailbox will be deleted.
- IMPLEMENTATION GUIDELINES
-
- Before call
-
-
No checks necessary.
-
- After call
-
-
The function returns
PXERR_NOERROR
if 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 }