mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
FairMQ: Introduce callbacks for the FairMQUnmanagedRegion.
Callbacks are called when the data buffer of the message assiciated with the corresponding region is no longer needed by the transport. Example in examples/advanced/Region/
This commit is contained in:
committed by
Mohammad Al-Turany
parent
378c47c5e5
commit
58a312b730
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <cstddef>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
#include "FairMQMessage.h"
|
||||
#include "FairMQUnmanagedRegion.h"
|
||||
@@ -42,8 +43,6 @@ class FairMQMessageNN : public FairMQMessage
|
||||
|
||||
virtual void SetMessage(void* data, const size_t size);
|
||||
|
||||
virtual void SetDeviceId(const std::string& deviceId);
|
||||
|
||||
virtual FairMQ::Transport GetType() const;
|
||||
|
||||
virtual void Copy(const std::unique_ptr<FairMQMessage>& msg);
|
||||
@@ -56,8 +55,7 @@ class FairMQMessageNN : public FairMQMessage
|
||||
void* fMessage;
|
||||
size_t fSize;
|
||||
bool fReceiving;
|
||||
bool fRegion;
|
||||
static std::string fDeviceID;
|
||||
FairMQUnmanagedRegion* fRegionPtr;
|
||||
static FairMQ::Transport fTransportType;
|
||||
|
||||
void Clear();
|
||||
|
Reference in New Issue
Block a user