C# Class IntelShared.Common.ProcessorLoad

ファイルを表示 Open project: 01org/NMPRK

Public Methods

Method Description
Initialize ( ) : void
LoadCPU ( ProcessorQueryAndControl lpInfo, AutoResetEvent ev, UpdateUsage uu, LoadCpuCallback lcc, ManualResetEvent stopEvent ) : void

Private Methods

Method Description
Factorial ( ulong n ) : ulong
GetCurrentProcessThread ( ) : ProcessThread
GetCurrentThreadId ( ) : uint
QueryIdleProcessorCycleTimeEx ( [ Group, [ BufferLength, [ ProcessorIdleCycleTime ) : int
QueryPerformanceCounter ( ulong &lpPerformanceCount ) : bool
QueryPerformanceFrequency ( ulong &lpFrequency ) : bool
StressTheCPU ( uint aIterations, ulong aFactorialNumber, AutoResetEvent ev, LoadCpuCallback lcc ) : System.Boolean
WaitSleep ( int ms, AutoResetEvent ev, LoadCpuCallback lcc ) : void

Method Details

Initialize() public method

public Initialize ( ) : void
return void

LoadCPU() public method

public LoadCPU ( ProcessorQueryAndControl lpInfo, AutoResetEvent ev, UpdateUsage uu, LoadCpuCallback lcc, ManualResetEvent stopEvent ) : void
lpInfo ProcessorQueryAndControl
ev System.Threading.AutoResetEvent
uu UpdateUsage
lcc LoadCpuCallback
stopEvent System.Threading.ManualResetEvent
return void