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.
- Note
- MultiCallback is NOT thread safe.
-
If limit is 0, the callback is executed immediately.
◆ MultiCallback()
ola::MultiCallback::MultiCallback |
( |
unsigned int |
limit, |
|
|
BaseCallback0< void > * |
callback |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
limit | after limit the object is deleted |
callback | is a BaseCallback0<void> to be executed after Run is called limit times |
The documentation for this class was generated from the following file: