PxRestoreAccessRights()

Restore access rights.

APPLIES TO

8.2.0

SYNOPSIS
PxError_t PxRestoreAccessRights (PxUInt_t accessrights);
ARGUMENTS
accessrights

The accessrights to store

ERROR CODES

PXERR_ACCESS_RIGHT

The calling task does not have the right to restore its access rights

DESCRIPTION

PxRestoreAccessRights restores the given access rights the task abandoned earlier. The task must have the access right PXACCESS_TASK_RESTORE_ACCESS_RIGHTS to use this service.

IMPLEMENTATION GUIDELINES
Before call
  • accessrights may be a combination of valid access rights (V)

After call
  • The function returns PXERR_NOERROR if 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
}