Open Lighting Architecture  0.9.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ola::MultiCallback Class Reference

Detailed Description

The MultiCallback class takes a limit & a callback. When the Run() method is called limit times, the callback is executed and the MultiCallback object deleted.

MultiCallback is NOT thread safe.
If limit is 0, the callback is exectuted immediately.
Inheritance diagram for ola::MultiCallback:
Inheritance graph
Collaboration diagram for ola::MultiCallback:
Collaboration graph

Public Member Functions

 MultiCallback (unsigned int limit, BaseCallback0< void > *callback)
void Run ()
 Executes the callback passed in during creation after limit calls. Then MultiCallback deletes itself.

Constructor & Destructor Documentation

ola::MultiCallback::MultiCallback ( unsigned int  limit,
BaseCallback0< void > *  callback 


limitafter limit the object is deleted
callbackis a BaseCallback0<void> to be executed after Run is called limit times

The documentation for this class was generated from the following file: