C# Class DotNetWorkQueue.Queue.WaitForThreadToFinish

Waits until a thread has indicated its done processing
Exibir arquivo Open project: blehnen/DotNetWorkQueue Class Usage Examples

Public Methods

Method Description
Wait ( Thread workerThread ) : bool

Waits for specified worker thread to finish.

Wait ( Thread workerThread, System.TimeSpan timeout ) : bool

Waits for specified worker thread to finish, or until the timeout period has been reached.

WaitForThreadToFinish ( ILogFactory log ) : System

Initializes a new instance of the WaitForThreadToFinish class.

Method Details

Wait() public method

Waits for specified worker thread to finish.
public Wait ( Thread workerThread ) : bool
workerThread Thread The worker thread.
return bool

Wait() public method

Waits for specified worker thread to finish, or until the timeout period has been reached.
public Wait ( Thread workerThread, System.TimeSpan timeout ) : bool
workerThread Thread The worker thread.
timeout System.TimeSpan The timeout.
return bool

WaitForThreadToFinish() public method

Initializes a new instance of the WaitForThreadToFinish class.
public WaitForThreadToFinish ( ILogFactory log ) : System
log ILogFactory The log.
return System