mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
shmmonitor: add session name and creator id to the output
This commit is contained in:
@@ -91,6 +91,17 @@ struct SegmentInfo
|
||||
AllocationAlgorithm fAllocationAlgorithm;
|
||||
};
|
||||
|
||||
struct SessionInfo
|
||||
{
|
||||
SessionInfo(const char* sessionName, int creatorId, const VoidAlloc& alloc)
|
||||
: fSessionName(sessionName, alloc)
|
||||
, fCreatorId(creatorId)
|
||||
{}
|
||||
|
||||
Str fSessionName;
|
||||
int fCreatorId;
|
||||
};
|
||||
|
||||
using Uint16SegmentInfoPairAlloc = boost::interprocess::allocator<std::pair<const uint16_t, SegmentInfo>, SegmentManager>;
|
||||
using Uint16SegmentInfoHashMap = boost::unordered_map<uint16_t, SegmentInfo, boost::hash<uint16_t>, std::equal_to<uint16_t>, Uint16SegmentInfoPairAlloc>;
|
||||
// using Uint16SegmentInfoMap = boost::interprocess::map<uint16_t, SegmentInfo, std::less<uint16_t>, Uint16SegmentInfoPairAlloc>;
|
||||
|
Reference in New Issue
Block a user