libosmscout
0.1
|
#include <Breaker.h>
Public Member Functions | |
virtual void | Break ()=0 |
Stop the processing. More... | |
virtual bool | IsAborted () const =0 |
Return true, if the process was signaled to stop. More... | |
virtual void | Reset ()=0 |
Reset the state of the breaker. More... | |
virtual | ~Breaker ()=default |
A breaker object instance allows to trigger cancelation of long running processes.
|
virtualdefault |
|
pure virtual |
Stop the processing.
This is just a setting a flag that must actively get polled by the long running process. So while the process was signaled to stop, it can still continue for a while.
Implemented in osmscout::CancelableFuture< T >::FutureBreaker, and osmscout::ThreadedBreaker.
|
pure virtual |
Return true, if the process was signaled to stop.
Implemented in osmscout::CancelableFuture< T >::FutureBreaker, and osmscout::ThreadedBreaker.
|
pure virtual |
Reset the state of the breaker.
Implemented in osmscout::CancelableFuture< T >::FutureBreaker, and osmscout::ThreadedBreaker.