Open Lighting Architecture  Latest Git
Classes | Namespaces
CallbackRunner.h File Reference

Detailed Description

Automatically execute a 0-arg callback when it goes out of scope.

Example
void Foo(MyCallback *on_complete) {
CallbackRunner runner(on_complete);
// do work here, which may contain return statements, on_complete will
// always be executed.
}
Include dependency graph for CallbackRunner.h:

Go to the source code of this file.

Classes

class  ola::CallbackRunner< CallbackClass >
 Automatically execute a callback when it goes out of scope. More...
 

Namespaces

 ola
 The namespace containing all OLA symbols.