FairMQ/fairmq/devices
Alexey Rybalchenko bd79420f93 Condition check before ending the main thread.
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);
}
```
2014-09-01 15:26:37 +02:00
..
FairMQBenchmarkSampler.cxx Condition check before ending the main thread. 2014-09-01 15:26:37 +02:00
FairMQBenchmarkSampler.h Fix CIDs 10587, 10813, 10911, 10912, 10402, 10403, 10577, 10578, 10579, 10848, 10861, 10865, 10868, 10910. 2014-07-28 14:04:20 +02:00
FairMQBuffer.cxx Condition check before ending the main thread. 2014-09-01 15:26:37 +02:00
FairMQBuffer.h Fix CIDs 10587, 10813, 10911, 10912, 10402, 10403, 10577, 10578, 10579, 10848, 10861, 10865, 10868, 10910. 2014-07-28 14:04:20 +02:00
FairMQMerger.cxx Condition check before ending the main thread. 2014-09-01 15:26:37 +02:00
FairMQMerger.h Fix CIDs 10587, 10813, 10911, 10912, 10402, 10403, 10577, 10578, 10579, 10848, 10861, 10865, 10868, 10910. 2014-07-28 14:04:20 +02:00
FairMQProxy.cxx Condition check before ending the main thread. 2014-09-01 15:26:37 +02:00
FairMQProxy.h Fix CIDs 10587, 10813, 10911, 10912, 10402, 10403, 10577, 10578, 10579, 10848, 10861, 10865, 10868, 10910. 2014-07-28 14:04:20 +02:00
FairMQSink.cxx Condition check before ending the main thread. 2014-09-01 15:26:37 +02:00
FairMQSink.h Fix CIDs 10587, 10813, 10911, 10912, 10402, 10403, 10577, 10578, 10579, 10848, 10861, 10865, 10868, 10910. 2014-07-28 14:04:20 +02:00
FairMQSplitter.cxx Condition check before ending the main thread. 2014-09-01 15:26:37 +02:00
FairMQSplitter.h Fix CIDs 10587, 10813, 10911, 10912, 10402, 10403, 10577, 10578, 10579, 10848, 10861, 10865, 10868, 10910. 2014-07-28 14:04:20 +02:00