#include <NvBlastTkTaskImpl.h>
Public Member Functions | |
| void | allocate (size_t capacity) |
| void | release () |
| T * | reserve (size_t n) |
| void | reset () |
| SharedBuffer () | |
| Nv::Blast::SharedBuffer< T >::SharedBuffer | ( | ) | [inline] |
| void Nv::Blast::SharedBuffer< T >::allocate | ( | size_t | capacity | ) | [inline] |
Preallocates memory for capacity elements.
| void Nv::Blast::SharedBuffer< T >::release | ( | void | ) | [inline] |
Frees the preallocated array.
| T* Nv::Blast::SharedBuffer< T >::reserve | ( | size_t | n | ) | [inline] |
Atomically gets a pointer to the first element of an array of n elements.
| void Nv::Blast::SharedBuffer< T >::reset | ( | ) | [inline] |
Preserves the memory allocated but resets to reserve from the beginning of the array.