Click or drag to resize

IWorkaroundPreventComputerFromGoingIntoSleepMode Method

Prevents the computer from going into sleep mode or allows it again. To be set when you start a long running computation without user interaction or network I/O, to be reset afterwards (so the computer can fall asleep again in case there's nothing going on). Not calling this function the computer would fall asleep after a while even at 100% CPU usage and disk usage, as might happen if you are executing some graph rewrite sequences for an excessive simulation. TODO: LINUX version. Currently Windows only. Silent nop.

Namespace: de.unika.ipd.grGen.libGr
Assembly: libGr (in libGr.dll) Version: GrGen.NET 7.1
Syntax
C#
void PreventComputerFromGoingIntoSleepMode(
	bool prevent
)

Parameters

prevent  Boolean
prevent if true, allow if false
See Also