mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
- Add multipart support to the interface and enable its use out of tasks.
Examples on the use out of tasks are provided in: `example/Tutorial3/digitization/TestDetectorDigiLoader.tpl:76-85`: sending a part. `example/Tutorial3/reconstruction/FairTestDetectorMQRecoTask.tpl:177-182`: receiving a part. - This commit also makes structure within processorTask more consistent with samplerTask. - add macro MQLOG to FairMQLogger.
This commit is contained in:
@@ -37,6 +37,12 @@ FairMQMessageNN::FairMQMessageNN(size_t size)
|
||||
fReceiving = false;
|
||||
}
|
||||
|
||||
|
||||
/* nanomsg does not offer support for creating a message out of an existing buffer,
|
||||
* therefore the following method is using memcpy. For more efficient handling,
|
||||
* create FairMQMessage object only with size parameter and fill it with data.
|
||||
* possible TODO: make this zero copy (will should then be as efficient as ZeroMQ).
|
||||
*/
|
||||
FairMQMessageNN::FairMQMessageNN(void* data, size_t size, fairmq_free_fn *ffn, void* hint)
|
||||
{
|
||||
fMessage = nn_allocmsg(size, 0);
|
||||
|
Reference in New Issue
Block a user