Orocos Real-Time Toolkit 2.6.0
A multi-reader multi-writer MemoryPool implementation. More...
|typedef unsigned int||size_type|
|TsPool (unsigned int ssize, const T &sample=T())|
|Creates a fixed size memory pool holding ssize blocks of memory that can hold an object of class T. |
|Clears all internal management data of this Memory Pool. |
|void||data_sample (const T &sample)|
|Initializes every element of the pool with the given sample and clears the pool. |
|value_t *||allocate ()|
|bool||deallocate (T *Value)|
|unsigned int||size ()|
|Return the number of elements that are available to be allocated. |
|unsigned int||capacity ()|
|The maximum number of elements available for allocation. |
A multi-reader multi-writer MemoryPool implementation.
It can hold max 65535 elements of type T.