C# Class DotNetWorkQueue.Queue.StopThread

Stops a thread by aborting it if configured to do; otherwise it will wait (forever if needed) until the thread dies.
Show file Open project: blehnen/DotNetWorkQueue Class Usage Examples

Public Methods

Method Description
StopThread ( IAbortWorkerThread abortWorkerThread, WaitForThreadToFinish waitForThreadToFinish ) : System.Threading

Initializes a new instance of the StopThread class.

TryForceTerminate ( Thread workerThread ) : bool

Stops a thread by aborting it if configured to do; otherwise it will wait (forever if needed) until the thread dies.

Method Details

StopThread() public method

Initializes a new instance of the StopThread class.
public StopThread ( IAbortWorkerThread abortWorkerThread, WaitForThreadToFinish waitForThreadToFinish ) : System.Threading
abortWorkerThread IAbortWorkerThread The abort worker thread.
waitForThreadToFinish WaitForThreadToFinish The wait for thread to finish.
return System.Threading

TryForceTerminate() public method

Stops a thread by aborting it if configured to do; otherwise it will wait (forever if needed) until the thread dies.
public TryForceTerminate ( Thread workerThread ) : bool
workerThread System.Threading.Thread The worker thread.
return bool