mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 16:46:47 +00:00
Allocate dynamic size flatbuffers structure on the heap
This commit is contained in:
parent
1ad58653e7
commit
bb36147099
|
@ -54,7 +54,7 @@ void FairMQMerger::Run()
|
||||||
if (poller->CheckInput(i))
|
if (poller->CheckInput(i))
|
||||||
{
|
{
|
||||||
// Try receiving the data.
|
// Try receiving the data.
|
||||||
if (dataInChannels[i]->Receive(msg) > 0)
|
if (dataInChannels[i]->Receive(msg) >= 0)
|
||||||
{
|
{
|
||||||
// If data was received, send it to output.
|
// If data was received, send it to output.
|
||||||
if (dataOutChannel.Send(msg) < 0)
|
if (dataOutChannel.Send(msg) < 0)
|
||||||
|
|
|
@ -44,7 +44,7 @@ void FairMQSplitter::Run()
|
||||||
{
|
{
|
||||||
std::unique_ptr<FairMQMessage> msg(fTransportFactory->CreateMessage());
|
std::unique_ptr<FairMQMessage> msg(fTransportFactory->CreateMessage());
|
||||||
|
|
||||||
if (dataInChannel.Receive(msg) > 0)
|
if (dataInChannel.Receive(msg) >= 0)
|
||||||
{
|
{
|
||||||
dataOutChannels[direction]->Send(msg);
|
dataOutChannels[direction]->Send(msg);
|
||||||
++direction;
|
++direction;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user