NWC24ResumeScheduler

Syntax

#include <revolution/nwc24.h>
s32 NWC24ResumeScheduler( void );

Description

Frees the auto-scheduler from a temporary pause.

If the suspend process is run multiple times and the suspend counter maintained within the library has a value greater than 1, the suspended state will not be cancelled just by decrementing the counter.

Arguments

None.

Return Values

Returns the suspend counter from before the start of processing.
When 0 is returned, it indicates that the auto-schedule was in an executable state before the process began.
A return value of 1 indicates that the suspended state was released by this process.
A positive return value of 2 or greater indicates that the suspended state continues.

One of the following is returned when the process fails:

NWC24_ERR_FATAL: fatal error.
NWC24_ERR_INTERNAL_IPC: problem with internal process.
NWC24_ERR_INPROGRESS: scheduler has not started.
NWC24_ERR_MUTEX: there is context indicating another call to the scheduler API and such.

See Also

NWC24SuspendScheduler, NWC24TrySuspendScheduler

Revision History

2007/12/13 Described internal counter operations.
2006/09/01 Initial version.


CONFIDENTIAL