.NET Based OPC UA Client/Server SDK  3.1.0.500
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...
 

Properties

string PoolName [get, set]
 Gets or sets the name of the thread pool. More...
 
uint 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 
)
inline

Initializes a new instance of the ThreadPool class.

Parameters
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 ( )
inline

Frees any unmanaged resources.

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

An overrideable version of the Dispose.

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

Schedules an incoming request.

Parameters
requestThe request.
callbackThe callback.

Property Documentation

int UnifiedAutomation.UaBase.ApplicationThreadPool.ActiveThreadCount
get

Gets the active thread count.

The active thread count.

int UnifiedAutomation.UaBase.ApplicationThreadPool.MaxRequestCount
get

Gets the maximum request count.

The maximum request count.

int UnifiedAutomation.UaBase.ApplicationThreadPool.MinThreadCount
get

Gets the minimum thread count.

The minimum thread count.

string UnifiedAutomation.UaBase.ApplicationThreadPool.PoolName
getset

Gets or sets the name of the thread pool.

The name of the thread pool.

uint UnifiedAutomation.UaBase.ApplicationThreadPool.QueueLength
get

Gets the current length of the queue.

The current length of the queue.

int UnifiedAutomation.UaBase.ApplicationThreadPool.TotalThreadCount
get

Gets the total thread count.

The total thread count.


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