mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
Adding multiple transports support & other fixes:
- Avoid polling when only one input channel is used. - Send only handles for shared memory transport. - Avoid waiting in the rate logger thread when nothing to log. - Hide warnings from generated files - Fix #483
This commit is contained in:
committed by
Mohammad Al-Turany
parent
22abc3671b
commit
8defd77b63
33
examples/MQ/multiple-transports/FairMQExampleMTSampler1.h
Normal file
33
examples/MQ/multiple-transports/FairMQExampleMTSampler1.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/********************************************************************************
|
||||
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
|
||||
* *
|
||||
* This software is distributed under the terms of the *
|
||||
* GNU Lesser General Public Licence version 3 (LGPL) version 3, *
|
||||
* copied verbatim in the file "LICENSE" *
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef FAIRMQEXAMPLEMTSAMPLER1_H_
|
||||
#define FAIRMQEXAMPLEMTSAMPLER1_H_
|
||||
|
||||
#include <string>
|
||||
#include <thread>
|
||||
|
||||
#include "FairMQDevice.h"
|
||||
|
||||
class FairMQExampleMTSampler1 : public FairMQDevice
|
||||
{
|
||||
public:
|
||||
FairMQExampleMTSampler1();
|
||||
virtual ~FairMQExampleMTSampler1();
|
||||
|
||||
protected:
|
||||
virtual void InitTask();
|
||||
virtual void PreRun();
|
||||
virtual bool ConditionalRun();
|
||||
virtual void PostRun();
|
||||
void ListenForAcks();
|
||||
|
||||
std::thread fAckListener;
|
||||
};
|
||||
|
||||
#endif /* FAIRMQEXAMPLEMTSAMPLER1_H_ */
|
Reference in New Issue
Block a user