@CHIP-RTOS C Library - RTOS API
Disable task switching.
void RTX_Disable_Task_Scheduling ( void );
- -- none --
- -- none --
- This function locks the processor
to the current task, preventing further task switching until either
or a sleep API function is called. Entering any sleep
API defeats the task lock. In this case the task lock condition
is released until the task resumes execution. During the sleep,
the system automatically releases the lock condition to allow other
tasks to execute.
During the task lock condition, interrupts still execute provided
that the user leaves interrupts enabled. Installed
procedures will not be executed.
This call must be followed by a call to
as soon as possible to re-enable the task switching.
If this period exceeds a hundred milliseconds then the watchdog
should be triggered (using the Hardware API
by the user until the task switching is re-enabled.
Note that this is implemented as a spin lock, such that if for some
reason the task calls here N times then N calls to
are required to unwind the spin lock and re-enable the task switching.
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
for more details.
- RTX API Overview
Supported since or modified in @CHIP-RTOS version
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document