A class that allows for lock-less access by the thread pool to the queued requests.
More...
Inherits IDisposable.
|
void | Dispose () |
| Frees any unmanaged resources. More...
|
|
void | Stop () |
| Releases all threads waiting on the buffer. More...
|
|
void | Lock () |
| Blocks until the thread can check the status of the buffer. More...
|
|
void | Unlock () |
| Releases the lock after the thread has finished checking the status of the buffer. More...
|
|
bool | Pop (ref T value) |
| Blocks until a value is ready and removes it from the buffer. More...
|
|
bool | Push (ref T value) |
| Blocks until space is available in the buffer and adds the value to the buffer. More...
|
|
|
virtual void | Dispose (bool disposing) |
| An overrideable version of the Dispose. More...
|
|
|
int | Size [get] |
| The current number of entries in the buffer. More...
|
|
A class that allows for lock-less access by the thread pool to the queued requests.
- Template Parameters
-
T | The type of structure in the buffer. |
void UnifiedAutomation.UaBase.RingBuffer< T >.Dispose |
( |
| ) |
|
|
inline |
Frees any unmanaged resources.
virtual void UnifiedAutomation.UaBase.RingBuffer< T >.Dispose |
( |
bool |
disposing | ) |
|
|
inlineprotectedvirtual |
An overrideable version of the Dispose.
void UnifiedAutomation.UaBase.RingBuffer< T >.Lock |
( |
| ) |
|
|
inline |
Blocks until the thread can check the status of the buffer.
bool UnifiedAutomation.UaBase.RingBuffer< T >.Pop |
( |
ref T |
value | ) |
|
|
inline |
Blocks until a value is ready and removes it from the buffer.
- Parameters
-
- Returns
- True if a value was returned; false otherwise.
bool UnifiedAutomation.UaBase.RingBuffer< T >.Push |
( |
ref T |
value | ) |
|
|
inline |
Blocks until space is available in the buffer and adds the value to the buffer.
- Parameters
-
- Returns
- True if a value was added; false otherwise.
void UnifiedAutomation.UaBase.RingBuffer< T >.Stop |
( |
| ) |
|
|
inline |
Releases all threads waiting on the buffer.
void UnifiedAutomation.UaBase.RingBuffer< T >.Unlock |
( |
| ) |
|
|
inline |
Releases the lock after the thread has finished checking the status of the buffer.
int UnifiedAutomation.UaBase.RingBuffer< T >.Size |
|
get |
The current number of entries in the buffer.
The documentation for this class was generated from the following file:
- D:/work/uasdknet_master/src/UaBase/Application/ApplicationThreadPool.cs