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
28
fairmq/shmem/runFairMQShmMonitor.cxx
Normal file
28
fairmq/shmem/runFairMQShmMonitor.cxx
Normal file
@@ -0,0 +1,28 @@
|
||||
/********************************************************************************
|
||||
* 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" *
|
||||
********************************************************************************/
|
||||
#include "FairMQShmMonitor.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
std::string segmentName = "fairmq_shmem_main";
|
||||
|
||||
if (argc == 2)
|
||||
{
|
||||
segmentName = argv[1];
|
||||
}
|
||||
std::cout << "Looking for shared memory segment \"" << segmentName << "\"..." << std::endl;
|
||||
|
||||
fair::mq::shmem::Monitor monitor{segmentName};
|
||||
|
||||
monitor.Run();
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user