C# Class Brunet.Util.TaskScheduler

Exibir arquivo Open project: pstjuste/brunet Class Usage Examples

Protected Properties

Property Type Description
_class_lock object
_finished bool
_in_queue BlockingQueue
_now_ticks long
_scheduler TaskScheduler
_task_queue LinkedList
_thread Thread

Public Methods

Method Description
GetInstance ( ) : TaskScheduler
Schedule ( BrunetTask task ) : void
Stop ( ) : void

Protected Methods

Method Description
AddTask ( BrunetTask task ) : void
Run ( ) : void
Start ( ) : void
TaskScheduler ( ) : Brunet

Method Details

AddTask() protected method

protected AddTask ( BrunetTask task ) : void
task BrunetTask
return void

GetInstance() public static method

public static GetInstance ( ) : TaskScheduler
return TaskScheduler

Run() protected method

protected Run ( ) : void
return void

Schedule() public method

public Schedule ( BrunetTask task ) : void
task BrunetTask
return void

Start() protected method

protected Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

TaskScheduler() protected method

protected TaskScheduler ( ) : Brunet
return Brunet

Property Details

_class_lock protected_oe static_oe property

protected static object _class_lock
return object

_finished protected_oe property

protected bool _finished
return bool

_in_queue protected_oe property

protected BlockingQueue _in_queue
return BlockingQueue

_now_ticks protected_oe property

protected long _now_ticks
return long

_scheduler protected_oe static_oe property

protected static TaskScheduler,Brunet.Util _scheduler
return TaskScheduler

_task_queue protected_oe property

protected LinkedList _task_queue
return LinkedList

_thread protected_oe property

protected Thread _thread
return Thread