13 #ifdef OPENDDS_SAFETY_PROFILE 14 namespace OpenDDS {
namespace DCPS {
21 SafetyProfilePool::~SafetyProfilePool()
28 SafetyProfilePool::configure_pool(
size_t size,
size_t granularity)
32 if (main_pool_ == NULL) {
33 main_pool_ =
new MemoryPool(size, granularity);
38 SafetyProfilePool::install()
46 SafetyProfilePool::instance() {
52 struct InstanceMaker {
59 if (SafetyProfilePool::instance_->main_pool_) {
60 ACE_DEBUG((LM_INFO,
"LWM: main pool: %d bytes\n",
61 SafetyProfilePool::instance_->main_pool_->lwm_free_bytes()));
68 InstanceMaker instance_maker_;
#define ACE_GUARD(MUTEX, OBJ, LOCK)
ACE_Guard< ACE_Thread_Mutex > lock_
static ACE_Allocator * instance(void)
ACE_Allocator SafetyProfilePool
OpenDDS_Dcps_Export unsigned int DCPS_debug_level
The Internal API and Implementation of OpenDDS.