Add shared memory example

- Add shared memory example in examples/MQ/SharedMemory
 - Device/Task termination: try soft first, and abort if it fails
 - Interactive mode: prevent cin from blocking forever (poll)
This commit is contained in:
Alexey Rybalchenko
2016-04-07 17:02:37 +02:00
parent 599d1b3e05
commit 3353e214a7
7 changed files with 90 additions and 59 deletions

View File

@@ -330,6 +330,9 @@ class FairMQDevice : public FairMQStateMachine, public FairMQConfigurable
/// Signal handler
void SignalHandler(int signal);
bool fCatchingSignals;
bool fTerminated;
// Interactive state loop helper
std::atomic<bool> fRunning;
};
#endif /* FAIRMQDEVICE_H_ */