OSDisableScheduler

C Specification

#include <revolution/os.h>
s32 OSDisableScheduler (void);

Arguments

None.

Return Values

The counter value before the scheduler suspends (suspends if value > 0).

Description

Suspends thread rescheduling (incremental). Interrupts must be disabled when this function is called.

The scheduler counts the number of times the OSDisableScheduler function has been called. The OSEnableScheduler function decrements the counter. Scheduling is enabled only when the counter is ≤ 0.

See Also

Thread Synchronization, Thread Synchronization Functions,OSEnableScheduler

Revision History

03/01/2006 Initial version.