|
libosmscout 0.1
|
A breaker object instance allows to trigger cancelation of long running processes. More...
#include <Breaker.h>
Inheritance diagram for osmscout::Breaker:Public Member Functions | |
| virtual void | Break ()=0 |
| Stop the processing. | |
| virtual bool | IsAborted () const =0 |
| Return true, if the process was signaled to stop. | |
| virtual void | Reset ()=0 |
| Reset the state of the breaker. | |
| 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::ThreadedBreaker, and osmscout::CancelableFuture< T >::FutureBreaker.
|
pure virtual |
Return true, if the process was signaled to stop.
Implemented in osmscout::ThreadedBreaker, and osmscout::CancelableFuture< T >::FutureBreaker.
|
pure virtual |
Reset the state of the breaker.
Implemented in osmscout::ThreadedBreaker, and osmscout::CancelableFuture< T >::FutureBreaker.