PxRestoreAccessRights()
Restore access rights.
- APPLIES TO
-
1.0.0
- SYNOPSIS
-
PxError_t PxRestoreAccessRights (PxUInt_t accessrights); - ARGUMENTS
|
- ERROR CODES
-
PXERR_ACCESS_RIGHTThe calling task does not have the right to restore its access rights
- DESCRIPTION
-
PxRestoreAccessRightsrestores the given access rights the task abandoned earlier. The task must have the access rightPXACCESS_TASK_RESTORE_ACCESS_RIGHTSto use this service.
- IMPLEMENTATION GUIDELINES
-
- Before call
-
-
accessrightsmay be a combination of valid access rights (V)
-
- After call
-
-
The function returns
PXERR_NOERRORif the access rights could be restored. 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 = PxRestoreAccessRights(PXACCESS_TASK_SET_HIGHER_PRIO); if (err != PXERR_NOERROR) { // Report error }