Open Lighting Architecture: include/ola/CallbackRunner.h File Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
Classes | Namespaces
CallbackRunner.h File Reference
Callback Helpers

## 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.
  }

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
namespace | ola
| The namespace containing all OLA symbols.