mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Implement shmem msg zero-copy
This commit is contained in:
committed by
Dennis Klein
parent
c57410b820
commit
bce380d871
@@ -47,6 +47,10 @@ struct Message
|
||||
TransportFactory* GetTransport() { return fTransport; }
|
||||
void SetTransport(TransportFactory* transport) { fTransport = transport; }
|
||||
|
||||
/// Copy the message buffer from another message
|
||||
/// Transport may choose not to physically copy the buffer, but to share across the messages.
|
||||
/// Modifying the buffer after a call to Copy() is undefined behaviour.
|
||||
/// @param msg message to copy the buffer from.
|
||||
virtual void Copy(const Message& msg) = 0;
|
||||
|
||||
virtual ~Message() = default;
|
||||
|
Reference in New Issue
Block a user