C# Class Fanx.Util.Scheduler

Scheduler is used to schedule work to be run after an elapsed period of time. It is optimized for use with the actor framework. Scheduler lazily launches a background thread the first time an item of work is scheduled.
Afficher le fichier Open project: xored/f4

Méthodes publiques

Méthode Description
Scheduler ( ) : System.Runtime.CompilerServices

Constructor.

dump ( ) : void

Debug

run ( ) : void

Private Methods

Méthode Description
add ( long ns, Work work ) : bool

Add the work item into the linked list so that the list is always sorted by earliest deadline to oldest deadline. Return true if we have a new head which changes our next earliest deadline.

schedule ( long ns, Work work ) : void
stop ( ) : void

Method Details

Scheduler() public méthode

Constructor.
public Scheduler ( ) : System.Runtime.CompilerServices
Résultat System.Runtime.CompilerServices

dump() public méthode

Debug
public dump ( ) : void
Résultat void

run() public méthode

public run ( ) : void
Résultat void