mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-16 01:51:45 +00:00
shmem: Heartbeats for the monitor.
This commit is contained in:
committed by
Mohammad Al-Turany
parent
a8d40abbd9
commit
14f9084a80
@@ -10,11 +10,16 @@
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <atomic>
|
||||
|
||||
#include <boost/interprocess/sync/named_mutex.hpp>
|
||||
|
||||
#include "FairMQTransportFactory.h"
|
||||
#include "FairMQMessageSHM.h"
|
||||
#include "FairMQSocketSHM.h"
|
||||
#include "FairMQPollerSHM.h"
|
||||
#include "FairMQShmDeviceCounter.h"
|
||||
|
||||
class FairMQTransportFactorySHM : public FairMQTransportFactory
|
||||
{
|
||||
@@ -38,11 +43,18 @@ class FairMQTransportFactorySHM : public FairMQTransportFactory
|
||||
void Shutdown() override;
|
||||
void Terminate() override;
|
||||
|
||||
void SendHeartbeats();
|
||||
|
||||
~FairMQTransportFactorySHM() override {};
|
||||
|
||||
private:
|
||||
static FairMQ::Transport fTransportType;
|
||||
void* fContext;
|
||||
void* fHeartbeatSocket;
|
||||
std::thread fHeartbeatThread;
|
||||
std::atomic<bool> fSendHeartbeats;
|
||||
boost::interprocess::named_mutex fShMutex;
|
||||
FairMQ::shmem::FairMQShmDeviceCounter* fDeviceCounter;
|
||||
};
|
||||
|
||||
#endif /* FAIRMQTRANSPORTFACTORYSHM_H_ */
|
||||
|
Reference in New Issue
Block a user