50 #ifndef INCLUDE_OLA_MULTICALLBACK_H_ 51 #define INCLUDE_OLA_MULTICALLBACK_H_ 83 m_callback(callback) {
95 if (++m_count == m_limit) {
102 unsigned int m_count;
103 unsigned int m_limit;
120 #endif // INCLUDE_OLA_MULTICALLBACK_H_ MultiCallback(unsigned int limit, BaseCallback0< void > *callback)
Constructor.
Definition: MultiCallback.h:79
The base class for all 0 argument callbacks.
Definition: Callback.h:119
The MultiCallback class takes a limit & a callback. When the Run() method is called limit times...
Definition: MultiCallback.h:71
BaseCallback0< void > * NewMultiCallback(unsigned int limit, BaseCallback0< void > *callback)
A helper function to create a new MultiCallback.
Definition: MultiCallback.h:113
void Run()
Executes the callback passed in during creation after limit calls. Then MultiCallback deletes itself...
Definition: MultiCallback.h:94
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44