PxSysObjReleaseAllObjects()
Release all objects requested by the caller.
- APPLIES TO
-
1.0.0
- SYNOPSIS
-
PxError_t PxSysObjReleaseAllObjects (void); - RETURN VALUES
-
-
Release error on failure
-
PXERR_NOERRORon success
-
- ERROR CODES
-
PXERR_TO_ILLTOtois not a valid timeout objectPXERR_OPOOL_ILLOPOOLThe object pool is not valid
PXERR_GLOBAL_ILLEGAL_COREThe requested memory class is not on the same core
PXERR_TASK_ILLTASKThe task is not a valid task object
PXERR_PE_ILLPEpeis not a valid periodic event objectPXERR_DELAY_ILLDELAY`delay is not a valid delay object
PXERR_DELAY_USED_BY_INTERRUPTDelay object currently in use by the interrupt handler
PXERR_MSG_ILLMSGThe passed message 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_ILL_NULLPOINTER_PARAMETERIllegal null pointer parameter in the call
PXERR_PROT_ILL_SIZEThe size of the protection region is not valid
PXERR_PROT_ILL_ALIGNAlignment of protection region is not valid
PXERR_MBX_ILLMBXThe passed mailbox handle is invalid
PXERR_MSG_ILLOWNERThe message has no owner
PXERR_MC_ILLMCThe memory class for the message 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
-
PxSysObjReleaseAllObjectsreleases all objects which are requested by the calling task. Right now onlyPxDelay,PxTo,PxPe,PxMbx, andPxTaskare handled.
- IMPLEMENTATION GUIDELINES
-
- Before call
-
-
No checks necessary.
-
- After call
-
-
The function returns
PXERR_NOERRORif the objects could be released. Any other return value describes an error, which has to be interpreted. (C)
-
- Best Practice
-
-
No restrictions.
-
- USAGE
-
#include "pxdef.h" PxError_t err = PxSysObjReleaseAllObjects(); if (err != PXERR_NOERROR) { // Report error }