LLDB mainline
|
Custom deleter for the pointer returned by mmap. More...
#include <Perf.h>
Public Member Functions | |
MmapDeleter (size_t bytes=0) | |
Construct new MmapDeleter. | |
void | operator() (void *ptr) |
Unmap the mmap'ed region. | |
Private Attributes | |
size_t | m_bytes |
Size of the mmap'ed region, in bytes, to be unmapped. | |
Custom deleter for the pointer returned by mmap.
This functor type is provided to unique_ptr to properly unmap the region at destruction time.
|
inline |
Construct new MmapDeleter.
[in] | bytes | Size of the mmap'ed region in bytes. |
void resource_handle::MmapDeleter::operator() | ( | void * | ptr | ) |
|
private |
Size of the mmap'ed region, in bytes, to be unmapped.
Definition at line 51 of file Perf.h.
Referenced by operator()().