mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
shmem: introduce FairMQShmMonitor.
This commit is contained in:
committed by
Mohammad Al-Turany
parent
7b4a2ae932
commit
2a526b8625
@@ -10,20 +10,23 @@
|
||||
|
||||
#include <atomic>
|
||||
|
||||
namespace FairMQ
|
||||
namespace fair
|
||||
{
|
||||
namespace mq
|
||||
{
|
||||
namespace shmem
|
||||
{
|
||||
|
||||
struct FairMQShmDeviceCounter
|
||||
struct DeviceCounter
|
||||
{
|
||||
FairMQShmDeviceCounter(unsigned int c)
|
||||
DeviceCounter(unsigned int c)
|
||||
: count(c)
|
||||
{}
|
||||
std::atomic<unsigned int> count;
|
||||
};
|
||||
|
||||
} // namespace shmem
|
||||
} // namespace FairMQ
|
||||
} // namespace mq
|
||||
} // namespace fair
|
||||
|
||||
#endif /* FAIRMQSHMDEVICECOUNTER_H_ */
|
||||
|
Reference in New Issue
Block a user