OSEnableScheduler

Syntax

#include <revolution/os.h>

s32 OSEnableScheduler(void);

Arguments

None.

Return Values

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

Description

Resumes thread rescheduling (decrement). Interrupts must be disabled when this function is called.

The scheduler maintains a counter for the number of times the OSDisableScheduler function has been called. The OSEnableScheduler function decrements the counter. Scheduling is enabled only if the count is ≤ 0.

Note: By default, the thread scheduler is enabled.

See Also

Thread Functions, Thread Synchronization Functions, OSDisableScheduler

Revision History

2006/03/01 Initial version.


CONFIDENTIAL