12 #include "vlutil/vlString.h"
13 #include "vlutil/vlShmPool.h"
17 #include <boost/interprocess/sync/scoped_lock.hpp>
18 #include <boost/interprocess/sync/named_mutex.hpp>
23 typedef boost::interprocess::named_mutex
mutex;
26 static const size_t NumberOfNames = 200;
27 static const size_t MaxTagLength = 200;
31 DtDebugDrawerSharedMemoryNoType = 0,
32 DtDebugDrawerSharedMemoryFeaturesType = 1,
33 DtDebugDrawerSharedMemoryVRFType = 2,
34 DtDebugDrawerSharedMemoryFeaturesSourceType = 4
41 : lock(*manager.myMutex)
51 static void SetEnabled(
bool);
52 static bool isEnabled();
57 virtual long addAndCreateNewName(
MemoryType type);
58 virtual long addAndCreateNewName(
MemoryType type, std::string tag);
59 virtual bool activate(
long name,
bool state =
true);
60 virtual void removeName(
long name);
64 Slot(
long name, std::string tag)
65 : name(name), tag(tag) { }
71 virtual std::vector<Slot> getMemoryBlockNamesByType(
MemoryType memoryType);
76 struct DtMemoryHeader;