C-DEngine 5.105

TheCommonUtils..::..SleepOneEye Method

A safe sleep function.

Namespace:  nsCDEngine.BaseClasses
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static void SleepOneEye(
	uint ms,
	uint minPeriod
)
Public Shared Sub SleepOneEye ( _
	ms As UInteger, _
	minPeriod As UInteger _
)
public:
static void SleepOneEye(
	unsigned int^ ms, 
	unsigned int^ minPeriod
)

Parameters

ms
Type: UInt32
Time in ms to sleep.
minPeriod
Type: UInt32
Probe for MASTERSWITCH every minPeriod ms.

Remarks


Sleeps for a certain period of time but monitors the TheBaseAssets.MASTERSWICH to ensure the app was not closed during this sleep process.