PxClearModebits()
Clear modebits of the calling task.
- APPLIES TO
-
1.0.0
- SYNOPSIS
-
PxTmode_t PxClearModebits (PxTmode_t modebits);
- ARGUMENTS
|
- RETURN VALUES
-
-
The old value of modebits
-
- DESCRIPTION
-
PxClearModebits clears the bits modebits in the calling task’s task control block. This reenables the corresponding mechanism.
The task mode specifies how a task reacts on external events. More specifically, the task mode contains the following modebits:
-
PXTmodeDisableAborts to control the abort mechanism
-
PXTmodeDisableTimeslicing to control the timeslice mechanism
-
- IMPLEMENTATION GUIDELINES
-
- Before call
-
-
modebits
may be a combination of the following bits (V):-
PXTmodeDisableAborts
-
PXTmodeDisableTimeslicing
-
-
- After call
-
-
PxGetError
must be called to check if an error has occurred. (F)
-
- Best Practice
-
-
No restrictions.
-
- SEE ALSO
- USAGE
-
#include "pxdef.h" PxTmode_t oldmode = PxClearModebits(modebits);