libkvikio
23.12.00
|
Class to retain host memory allocations. More...
#include <posix_io.hpp>
Classes | |
class | Alloc |
Public Member Functions | |
Alloc | get () |
void | put (void *alloc) |
void | clear () |
AllocRetain (const AllocRetain &)=delete | |
AllocRetain & | operator= (AllocRetain const &)=delete |
AllocRetain (AllocRetain &&o)=delete | |
AllocRetain & | operator= (AllocRetain &&o)=delete |
Class to retain host memory allocations.
Call AllocRetain::get
to get an allocation that will be retained when it goes out of scope (RAII). The size of all allocations are posix_bounce_buffer_size
.
Definition at line 41 of file posix_io.hpp.