OpenRTM-aist 2.1.0
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
ListenerHolder.h File Reference
#include <mutex>
#include <vector>
#include <utility>
Include dependency graph for ListenerHolder.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RTM::util::ListenerHolder< ListenerClass >
 

Namespaces

namespace  RTM
 RT-Middleware.
 
namespace  RTM::util
 

Macros

#define LISTENERHOLDER_CALLBACK(func, args)
 

Macro Definition Documentation

◆ LISTENERHOLDER_CALLBACK

#define LISTENERHOLDER_CALLBACK (   func,
  args 
)
Value:
do { \
std::lock_guard<std::mutex> guard(m_mutex); \
for (auto&& listener : m_listeners) \
{ \
listener.first->func args; \
} \
} while(0)