PxTerminate()
Terminate the calling task and release all its allocated objects.
- APPLIES TO
-
8.2.0
- SYNOPSIS
-
PxError_t PxTerminate (PxBool_t release); - ARGUMENTS
|
- RETURN VALUES
-
-
Error on failure
-
No return on success
-
- ERROR CODES
-
Allerrors available from Px…Release and
PxMcReturnAllBlks - DESCRIPTION
-
PxTerminateterminates the calling task and releases all its allocated objects by callingPxMsgReleaseAllMsgandPxSysObjReleaseAllObjects. If the release was successfulPxTerminatecallsPxDieto schedule the task for deletion. If no error occurs the call does not return.
- IMPLEMENTATION GUIDELINES
-
- Before call
-
-
releasemust be TRUE or FALSE. This parameter should be a constant (V).
-
- After call
-
-
On success the function does not return. Any return value describes an error, which has to be interpreted.
-
- Best Practice
-
-
No restrictions.
-
- SEE ALSO
- USAGE
-
#include "pxdef.h" PxError_t err = PxTerminate(1); if (err != PXERR_NOERROR) { // Report error }