RestartSys Class Reference

class RestartSys

This class provides static functions to safely restart the system.

Public Member Functions
IMPORT_C TInt RestartSystem ()
IMPORT_C TInt RestartSystem ( TInt )

Member Functions Documentation

RestartSystem()

IMPORT_C TInt RestartSystem ( ) [static]
Safely restarts the system in the default startup mode (EStartupModeUndefined).
capability
PowerMgmt
capability
SwEvent
RestartSys::RestartSystem(TInt aStartupMode)

RestartSystem(TInt)

IMPORT_C TInt RestartSystem ( TInt aStartupMode ) [static]
Safely restarts the system in a given startup mode.
Post-condition
This function will return after posting an event in system event queue. The processing of this event might take some time and even might be cancelled if the system cannot be restarted safely. The execution of the calling thread will continue for an indefinte period of time after this call, but it has no guarantees to finish execution. It is strongly advised to delay for a sufficient period of time to let the shutdown request be processed.
           // Usage example to restart the system in licensee-defined mode 3
	RestartSys::RestartSystem(3);
	User::After(5000000);
          
panic
ERestartNotSupportedOnEmulator if this function is called on emulator
capability
PowerMgmt
capability
WriteDeviceData
capability
SwEvent

Parameters

TInt aStartupMode The startup mode the device will start in after reboot