www.beck-ipc.com

@CHIP-RTOS C Library V2.00 - RTOS API


RTX_Disable_Task_Scheduling

Disable task switching.

void RTX_Disable_Task_Scheduling ( void );

Parameters

-- none --

Return Value

-- none --

Comments

This function locks the processor to the current task, preventing further task switching until RTX_Enable_Task_Scheduling is called.   Interrupts still execute provided that the user leaves interrupts enabled.   Installed Timer procedures will not be executed.   API functions which call another task (like TCPIP API functions) and also the API Sleep functions must not be used.

This call must be followed by a call to RTX_Enable_Task_Scheduling 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 hal_refresh_watchdog function) by the user until the task switching is re-enabled.

Note that this is not a spin lock.  Repeated calls to RTX_Disable_Task_Scheduling have no further affect.

See Also

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.


This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document