Open Lighting Architecture  0.9.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces
CallbackRunner.h File Reference

Detailed Description

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

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.


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


namespace  ola
 The namespace containing all OLA symbols.