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 DtDebugDrawerSharedMemoryBHaveType = 3,
35 DtDebugDrawerSharedMemoryFeaturesSourceType = 4
42 : lock(manager.myMutex)
52 static void SetEnabled(
bool);
53 static bool isEnabled();
58 virtual long addAndCreateNewName(
MemoryType type);
59 virtual long addAndCreateNewName(
MemoryType type, std::string tag);
60 virtual bool activate(
long name,
bool state =
true);
61 virtual void removeName(
long name);
65 Slot(
long name, std::string tag)
66 : name(name), tag(tag) { }
72 virtual std::vector<Slot> getMemoryBlockNamesByType(
MemoryType memoryType);
77 struct DtMemoryHeader;