OpenDDS::DCPS::SafetyProfilePool Class Reference
Memory pool for use when the Safety Profile is enabled.
More...
#include <SafetyProfilePool.h>
List of all members.
Public Member Functions |
| SafetyProfilePool () |
| ~SafetyProfilePool () |
void | configure_pool (size_t size, size_t granularity) |
void | install () |
void * | malloc (std::size_t size) |
void | free (void *ptr) |
void * | calloc (std::size_t bytes, char init= '\0') |
void * | calloc (std::size_t elems, std::size_t size, char init= '\0') |
int | remove () |
int | bind (const char *, void *, int=0) |
int | trybind (const char *, void *&) |
int | find (const char *, void *&) |
int | find (const char *) |
int | unbind (const char *, void *&) |
int | unbind (const char *) |
int | sync (ssize_t=-1, int=MS_SYNC) |
int | sync (void *, size_t, int=MS_SYNC) |
int | protect (ssize_t=-1, int=PROT_RDWR) |
int | protect (void *, size_t, int=PROT_RDWR) |
void | dump () const |
Static Public Member Functions |
static SafetyProfilePool * | instance () |
| Return a singleton instance of this class.
|
Private Member Functions |
| SafetyProfilePool (const SafetyProfilePool &) |
SafetyProfilePool & | operator= (const SafetyProfilePool &) |
Private Attributes |
MemoryPool * | main_pool_ |
ACE_Thread_Mutex | lock_ |
Static Private Attributes |
static SafetyProfilePool * | instance_ |
Friends |
class | SafetyProfilePoolTest |
class | InstanceMaker |
Detailed Description
Memory pool for use when the Safety Profile is enabled.
Saftey Profile disallows std::free() and the delete operators See PoolAllocator.h for a class that allows STL containers to use an instance of SafetyProfilePool managed by our Service_Participant singleton.
Definition at line 34 of file SafetyProfilePool.h.
Constructor & Destructor Documentation
OpenDDS::DCPS::SafetyProfilePool::SafetyProfilePool |
( |
|
) |
|
OpenDDS::DCPS::SafetyProfilePool::~SafetyProfilePool |
( |
|
) |
|
OpenDDS::DCPS::SafetyProfilePool::SafetyProfilePool |
( |
const SafetyProfilePool & |
|
) |
[private] |
Member Function Documentation
int OpenDDS::DCPS::SafetyProfilePool::bind |
( |
const char * |
, |
|
|
void * |
, |
|
|
int |
= 0 | |
|
) |
| | [inline, virtual] |
void* OpenDDS::DCPS::SafetyProfilePool::calloc |
( |
std::size_t |
elems, |
|
|
std::size_t |
size, |
|
|
char |
init = '\0' | |
|
) |
| | [inline] |
void* OpenDDS::DCPS::SafetyProfilePool::calloc |
( |
std::size_t |
bytes, |
|
|
char |
init = '\0' | |
|
) |
| | [inline] |
void OpenDDS::DCPS::SafetyProfilePool::configure_pool |
( |
size_t |
size, |
|
|
size_t |
granularity | |
|
) |
| | |
void OpenDDS::DCPS::SafetyProfilePool::dump |
( |
void |
|
) |
const [inline, virtual] |
int OpenDDS::DCPS::SafetyProfilePool::find |
( |
const char * |
|
) |
[inline, virtual] |
int OpenDDS::DCPS::SafetyProfilePool::find |
( |
const char * |
, |
|
|
void *& |
| |
|
) |
| | [inline, virtual] |
void OpenDDS::DCPS::SafetyProfilePool::free |
( |
void * |
ptr |
) |
[inline, virtual] |
void OpenDDS::DCPS::SafetyProfilePool::install |
( |
|
) |
|
void* OpenDDS::DCPS::SafetyProfilePool::malloc |
( |
std::size_t |
size |
) |
[inline] |
int OpenDDS::DCPS::SafetyProfilePool::protect |
( |
void * |
, |
|
|
size_t |
, |
|
|
int |
= PROT_RDWR | |
|
) |
| | [inline] |
int OpenDDS::DCPS::SafetyProfilePool::protect |
( |
ssize_t |
= -1 , |
|
|
int |
= PROT_RDWR | |
|
) |
| | [inline, virtual] |
int OpenDDS::DCPS::SafetyProfilePool::remove |
( |
void |
|
) |
[inline, virtual] |
int OpenDDS::DCPS::SafetyProfilePool::sync |
( |
void * |
, |
|
|
size_t |
, |
|
|
int |
= MS_SYNC | |
|
) |
| | [inline] |
int OpenDDS::DCPS::SafetyProfilePool::sync |
( |
ssize_t |
= -1 , |
|
|
int |
= MS_SYNC | |
|
) |
| | [inline, virtual] |
int OpenDDS::DCPS::SafetyProfilePool::trybind |
( |
const char * |
, |
|
|
void *& |
| |
|
) |
| | [inline, virtual] |
int OpenDDS::DCPS::SafetyProfilePool::unbind |
( |
const char * |
|
) |
[inline, virtual] |
int OpenDDS::DCPS::SafetyProfilePool::unbind |
( |
const char * |
, |
|
|
void *& |
| |
|
) |
| | [inline, virtual] |
Friends And Related Function Documentation
friend class InstanceMaker [friend] |
friend class SafetyProfilePoolTest [friend] |
Member Data Documentation
The documentation for this class was generated from the following file: