C# Class EC.Threading.LoopThread

显示文件 Open project: rygo6/ECThreading

Protected Properties

Property Type Description
Method System.Action
Priority Priority
ThreadName string

Public Methods

Method Description
Create ( System.Action method, string threadName, Priority priority, int cycleTimeMS, bool debugCoroutineThread = false ) : LoopThread

Returns UniLoopThread for proper platform.

LoopThread ( System.Action method, string threadName, Priority priority, int cycleTimeMS ) : System
Start ( ) : void
Stop ( ) : void
Wait ( int ms ) : void

Protected Methods

Method Description
RunThreadLoop ( ) : void

Method Details

Create() public static method

Returns UniLoopThread for proper platform.
public static Create ( System.Action method, string threadName, Priority priority, int cycleTimeMS, bool debugCoroutineThread = false ) : LoopThread
method System.Action
threadName string
priority Priority
cycleTimeMS int Cycle time in Milliseconds.
debugCoroutineThread bool Optional flag to run thread through coroutine for debuggin purposes.
return LoopThread

LoopThread() public method

public LoopThread ( System.Action method, string threadName, Priority priority, int cycleTimeMS ) : System
method System.Action
threadName string
priority Priority
cycleTimeMS int
return System

RunThreadLoop() protected method

protected RunThreadLoop ( ) : void
return void

Start() public abstract method

public abstract Start ( ) : void
return void

Stop() public abstract method

public abstract Stop ( ) : void
return void

Wait() public abstract method

public abstract Wait ( int ms ) : void
ms int
return void

Property Details

Method protected_oe property

protected Action,System Method
return System.Action

Priority protected_oe property

protected Priority Priority
return Priority

ThreadName protected_oe property

protected string ThreadName
return string