shmem: Heartbeats for the monitor.

This commit is contained in:
Alexey Rybalchenko
2017-04-12 11:21:43 +02:00
committed by Mohammad Al-Turany
parent a8d40abbd9
commit 14f9084a80
5 changed files with 142 additions and 14 deletions

View File

@@ -0,0 +1,29 @@
/********************************************************************************
* 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 FAIRMQSHMDEVICECOUNTER_H_
#define FAIRMQSHMDEVICECOUNTER_H_
#include <atomic>
namespace FairMQ
{
namespace shmem
{
struct FairMQShmDeviceCounter
{
FairMQShmDeviceCounter(unsigned int c)
: count(c)
{}
std::atomic<unsigned int> count;
};
} // namespace shmem
} // namespace FairMQ
#endif /* FAIRMQSHMDEVICECOUNTER_H_ */