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

@@ -31,7 +31,8 @@ struct DDSConfig
/// Addresses of binding channels are published via DDS using channels names as keys
/// Addresses of connecting channels are collected from DDS using channels names as keys
/// \param device Reference to FairMQDevice whose channels to handle
void HandleConfigViaDDS(FairMQDevice& device)
template<typename TMQDevice>
void HandleConfigViaDDS(TMQDevice& device)
{
// container for binding channels
vector<FairMQChannel*> bindingChans;