PxClearModebits()
Clear modebits of the calling task.
- APPLIES TO
- 
8.2.0 
- SYNOPSIS
- 
PxTmode_t PxClearModebits (PxTmode_t modebits);
- ARGUMENTS
| 
 | 
- RETURN VALUES
- 
- 
The old value of modebits
 
- 
- DESCRIPTION
- 
PxClearModebitsclears the bitsmodebitsin the calling task’s task control block. This re-enables the corresponding mechanism.The task mode specifies how a task reacts on external events. More specifically, the task mode contains the following modebits:- 
PXTmodeDisableAbortsto control the abort mechanism
- 
PXTmodeDisableTimeslicingto control the timeslice mechanism
 
- 
- IMPLEMENTATION GUIDELINES
- 
- Before call
- 
- 
modebitsmay be a combination of the following bits (V):- 
PXTmodeDisableAborts
- 
PXTmodeDisableTimeslicing
 
- 
 
- 
 - After call
- 
- 
PxGetErrormust 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);