Skip to content
Snippets Groups Projects
Commit cf8ac6cb authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia Committed by Graeme Stewart
Browse files

Adding random components to the shared queue names in ProcessGroup (AthenaInterprocess-00-02-06-01)

parent 2f950c85
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ using namespace boost::interprocess;
static inline AthenaInterprocess::SharedQueue create_queue( const std::string& owner, int count )
{
std::ostringstream s;
s << "athenamp_" << owner << '_' << getpid() << '_' << count << std::ends;
s << "athenamp_" << owner << '_' << getpid() << '_' << count << '_' << rand() << std::ends;
AthenaInterprocess::SharedQueue queue = AthenaInterprocess::SharedQueue( s.str() );
return queue;
}
......@@ -218,7 +218,7 @@ bool ProcessGroup::create()
// a single queue for posting back onto the mother
if ( ! m_inbox ) {
std::ostringstream s;
s << "athenamp_mother_" << getpid() << std::ends;
s << "athenamp_mother_" << getpid() << '_' << rand() << std::ends;
m_inbox = AthenaInterprocess::IdentifiedSharedQueue( s.str() );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment