mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
shmem: Heartbeats for the monitor.
This commit is contained in:
committed by
Mohammad Al-Turany
parent
a8d40abbd9
commit
14f9084a80
29
fairmq/shmem/FairMQShmDeviceCounter.h
Normal file
29
fairmq/shmem/FairMQShmDeviceCounter.h
Normal 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_ */
|
Reference in New Issue
Block a user