C# Class Squared.Task.ThreadSafeJobQueue

Inheritance: IJobQueue
显示文件 Open project: sq/Fracture

Public Properties

Property Type Description
DefaultMaxStepDuration long?
MaxStepDuration long?

Public Methods

Method Description
Dispose ( ) : void
QueueWorkItem ( System.Action item ) : void
QueueWorkItemForNextStep ( System.Action item ) : void
Step ( ) : void
ThreadSafeJobQueue ( ) : System
ThreadSafeJobQueue ( long maxStepDuration ) : System
WaitForFuture ( IFuture future ) : bool
WaitForWorkItems ( double timeout ) : bool

Private Methods

Method Description
OnMaxStepDurationExceeded ( long elapsedTicks ) : bool

Method Details

Dispose() public method

public Dispose ( ) : void
return void

QueueWorkItem() public method

public QueueWorkItem ( System.Action item ) : void
item System.Action
return void

QueueWorkItemForNextStep() public method

public QueueWorkItemForNextStep ( System.Action item ) : void
item System.Action
return void

Step() public method

public Step ( ) : void
return void

ThreadSafeJobQueue() public method

public ThreadSafeJobQueue ( ) : System
return System

ThreadSafeJobQueue() public method

public ThreadSafeJobQueue ( long maxStepDuration ) : System
maxStepDuration long
return System

WaitForFuture() public method

public WaitForFuture ( IFuture future ) : bool
future IFuture
return bool

WaitForWorkItems() public method

public WaitForWorkItems ( double timeout ) : bool
timeout double
return bool

Property Details

DefaultMaxStepDuration public_oe static_oe property

public static long? DefaultMaxStepDuration
return long?

MaxStepDuration public_oe property

public long? MaxStepDuration
return long?