Eris
1.4.0
|
To be used with EventService::runOnMainThread. More...
#include <ActiveMarker.h>
Public Member Functions | |
ActiveMarker () | |
Ctor. More... | |
~ActiveMarker () | |
Dtor. More... | |
operator std::shared_ptr< bool > () | |
Implicit conversion operator for shared_ptr<bool>. More... | |
const std::shared_ptr< bool > | getMarker () const |
ActiveMarker & | operator= (ActiveMarker &&rhs) |
To be used with EventService::runOnMainThread.
Use an instance of this as a field on your class to handle cancellation of handlers automatically when your instance is destroyed. The destructor will automatically set the marker to "false".
Eris::ActiveMarker::ActiveMarker | ( | ) |
Ctor.
Will initialize the marker to "true".
Eris::ActiveMarker::~ActiveMarker | ( | ) |
Dtor.
Will set the marker to "false".
Eris::ActiveMarker::operator std::shared_ptr< bool > | ( | ) |
Implicit conversion operator for shared_ptr<bool>.