.NET Based OPC UA Client/Server SDK
UnifiedAutomation.UaBase.ApplicationThreadPool Class Reference

Manages a queue of requests. More...

Inherits IDisposable.

Public Member Functions

 ApplicationThreadPool (int threadCount, int bufferSize)
 Initializes a new instance of the ThreadPool class. More...
void Dispose ()
 Frees any unmanaged resources. More...
virtual void Queue (object request, ThreadPoolEventHandler callback)
 Schedules an incoming request. More...

Protected Member Functions

virtual void Dispose (bool disposing)
 An overrideable version of the Dispose. More...


string PoolName [get, set]
 Gets or sets the name of the thread pool. More...
int QueueLength [get]
 Gets the current length of the queue. More...
int TotalThreadCount [get]
 Gets the total thread count. More...
int ActiveThreadCount [get]
 Gets the active thread count. More...
int MinThreadCount [get]
 Gets the minimum thread count. More...
int MaxRequestCount [get]
 Gets the maximum request count. More...

Detailed Description

Manages a queue of requests.

Constructor & Destructor Documentation

UnifiedAutomation.UaBase.ApplicationThreadPool.ApplicationThreadPool ( int  threadCount,
int  bufferSize 

Initializes a new instance of the ThreadPool class.

threadCountThe number of threads in the pool.
bufferSizeThe maximum number of requests that will placed in the queue.

Member Function Documentation

void UnifiedAutomation.UaBase.ApplicationThreadPool.Dispose ( )

Frees any unmanaged resources.

virtual void UnifiedAutomation.UaBase.ApplicationThreadPool.Dispose ( bool  disposing)

An overrideable version of the Dispose.

virtual void UnifiedAutomation.UaBase.ApplicationThreadPool.Queue ( object  request,
ThreadPoolEventHandler  callback 

Schedules an incoming request.

requestThe request.
callbackThe callback.

Property Documentation

int UnifiedAutomation.UaBase.ApplicationThreadPool.ActiveThreadCount

Gets the active thread count.

The active thread count.

int UnifiedAutomation.UaBase.ApplicationThreadPool.MaxRequestCount

Gets the maximum request count.

The maximum request count.

int UnifiedAutomation.UaBase.ApplicationThreadPool.MinThreadCount

Gets the minimum thread count.

The minimum thread count.

string UnifiedAutomation.UaBase.ApplicationThreadPool.PoolName

Gets or sets the name of the thread pool.

The name of the thread pool.

int UnifiedAutomation.UaBase.ApplicationThreadPool.QueueLength

Gets the current length of the queue.

The current length of the queue.

int UnifiedAutomation.UaBase.ApplicationThreadPool.TotalThreadCount

Gets the total thread count.

The total thread count.

The documentation for this class was generated from the following file: