mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
Remove previously deprecated Copy method (since 1yr)
This commit is contained in:
committed by
Dennis Klein
parent
a9619a06d0
commit
ee24144d61
@@ -316,29 +316,6 @@ void FairMQMessageSHM::Copy(const FairMQMessage& msg)
|
||||
}
|
||||
}
|
||||
|
||||
void FairMQMessageSHM::Copy(const FairMQMessagePtr& msg)
|
||||
{
|
||||
if (fHandle < 0)
|
||||
{
|
||||
bipc::managed_shared_memory::handle_t otherHandle = static_cast<FairMQMessageSHM*>(msg.get())->fHandle;
|
||||
if (otherHandle)
|
||||
{
|
||||
if (InitializeChunk(msg->GetSize()))
|
||||
{
|
||||
memcpy(GetData(), msg->GetData(), msg->GetSize());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG(error) << "copy fail: source message not initialized!";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG(error) << "copy fail: target message already initialized!";
|
||||
}
|
||||
}
|
||||
|
||||
void FairMQMessageSHM::CloseMessage()
|
||||
{
|
||||
if (fHandle >= 0 && !fQueued)
|
||||
|
Reference in New Issue
Block a user