C# Class RemoteViewing.Utility.PeriodicThread

Represents a Thread that invokes a specific action at a specific interval
Show file Open project: qmfrederik/remoteviewing

Public Methods

Method Description
Signal ( ) : void

Signals the PeriodicThread that an action should be performed.

Start ( System.Action action, Func getUpdateRateFunc, bool useSignal ) : void

Invokes the action at a frequency specified by getUpdateRateFunc; optionally waiting for a signal to execute the action.

Stop ( ) : void

Stops this PeriodicThread.

Method Details

Signal() public method

Signals the PeriodicThread that an action should be performed.
public Signal ( ) : void
return void

Start() public method

Invokes the action at a frequency specified by getUpdateRateFunc; optionally waiting for a signal to execute the action.
public Start ( System.Action action, Func getUpdateRateFunc, bool useSignal ) : void
action System.Action /// The action to run at the frequency specifie. ///
getUpdateRateFunc Func /// A function that returns at which frequency (in Hz) the should /// be performed. ///
useSignal bool /// to wait for before executing the action; /// otherwise, . ///
return void

Stop() public method

Stops this PeriodicThread.
public Stop ( ) : void
return void