mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Shm: Use MakeShmName to construct shm object names
This commit is contained in:
@@ -44,8 +44,12 @@ using RBTreeBestFitSegment = boost::interprocess::basic_managed_shared_memory<ch
|
||||
boost::interprocess::null_index>;
|
||||
// boost::interprocess::iset_index>;
|
||||
|
||||
inline std::string MakeShmName(const std::string& shmId, const std::string& type) {
|
||||
return std::string("fmq_" + shmId + "_" + type);
|
||||
}
|
||||
|
||||
inline std::string MakeShmName(const std::string& shmId, const std::string& type, int index) {
|
||||
return std::string("fmq_" + shmId + "_" + type + "_" + std::to_string(index));
|
||||
return std::string(MakeShmName(shmId, type) + "_" + std::to_string(index));
|
||||
}
|
||||
|
||||
struct RefCount
|
||||
|
Reference in New Issue
Block a user