C# Class AGENT.Contrib.Util.ThreadUtil

Datei anzeigen Open project: nothingmn/AGENT.Contrib

Public Methods

Method Description
SafeQueueWorkItem ( ThreadStart start ) : void

Queues an action into the threadpool

Start ( ThreadStart start ) : void

Starts a new thread with an action

Private Methods

Method 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 method

Queues an action into the threadpool
public static SafeQueueWorkItem ( ThreadStart start ) : void
start ThreadStart
return void

Start() public static method

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