34 #ifndef INCLUDED_Finally_h_GUID_B9F9A283_5381_41A5_3D60_CEF0F8BA8606 35 #define INCLUDED_Finally_h_GUID_B9F9A283_5381_41A5_3D60_CEF0F8BA8606 102 #endif // INCLUDED_Finally_h_GUID_B9F9A283_5381_41A5_3D60_CEF0F8BA8606 Definition: RunLoopManager.h:42
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
Definition: TypeSafeIdHash.h:44
Allows you to run a callable something at the end of a scope.
Definition: Finally.h:54
FinalTask & operator=(FinalTask const &)=delete
non-assignable
void cancel()
Cancel causes us to not do our final task on destruction.
Definition: Finally.h:73
FinalTask(F f)
Explicit constructor from something callable.
Definition: Finally.h:57
FinalTask(FinalTask &&other)
Move constructor - cancels the moved-from task.
Definition: Finally.h:59
~FinalTask()
Destructor - if we haven't been cancelled, do our callable thing.
Definition: Finally.h:67