C# Class AGENT.Contrib.Util.ThreadUtil

Afficher le fichier Open project: nothingmn/AGENT.Contrib

Méthodes publiques

Méthode Description
SafeQueueWorkItem ( ThreadStart start ) : void

Queues an action into the threadpool

Start ( ThreadStart start ) : void

Starts a new thread with an action

Private Methods

Méthode Description
ActionConsumer ( ) : void

Main body of a threadpool thread. Indefinitely wait until an action is queued. When an action is de-queued safely execute it

Method Details

SafeQueueWorkItem() public static méthode

Queues an action into the threadpool
public static SafeQueueWorkItem ( ThreadStart start ) : void
start ThreadStart
Résultat void

Start() public static méthode

Starts a new thread with an action
public static Start ( ThreadStart start ) : void
start ThreadStart
Résultat void