mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 00:31:14 +00:00
Make sure the main thread waits for the child thread with the Run() method. * Add this at the end of your Run() method for each device: ``` boost::lock_guard<boost::mutex> lock(fRunningMutex); fRunningFinished = true; fRunningCondition.notify_one(); ``` * Then you must replace the `char ch; cin.get(ch);` in your main() function with: ``` boost::unique_lock<boost::mutex> lock(processor.fRunningMutex); while (!processor.fRunningFinished) { processor.fRunningCondition.wait(lock); } ``` |
||
---|---|---|
.. | ||
FairMQBenchmarkSampler.cxx | ||
FairMQBenchmarkSampler.h | ||
FairMQBuffer.cxx | ||
FairMQBuffer.h | ||
FairMQMerger.cxx | ||
FairMQMerger.h | ||
FairMQProxy.cxx | ||
FairMQProxy.h | ||
FairMQSink.cxx | ||
FairMQSink.h | ||
FairMQSplitter.cxx | ||
FairMQSplitter.h |