libosmscout  1.1.1
Public Member Functions | List of all members
osmscout::Breaker Class Referenceabstract

#include <libosmscout/include/osmscout/util/Breaker.h>

Inheritance diagram for osmscout::Breaker:
Inheritance graph
[legend]

Public Member Functions

virtual ~Breaker ()=default
 
virtual void Break ()=0
 
virtual bool IsAborted () const =0
 
virtual void Reset ()=0
 

Detailed Description

A breaker object instance allows to trigger cancelation of long running processes.

Constructor & Destructor Documentation

◆ ~Breaker()

virtual osmscout::Breaker::~Breaker ( )
virtualdefault

Member Function Documentation

◆ Break()

virtual void osmscout::Breaker::Break ( )
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.

Returns

Implemented in osmscout::ThreadedBreaker, and osmscout::QBreaker.

◆ IsAborted()

virtual bool osmscout::Breaker::IsAborted ( ) const
pure virtual

Return true, if the process was signaled to stop

Returns
True, if signaled, else false

Implemented in osmscout::ThreadedBreaker, and osmscout::QBreaker.

◆ Reset()

virtual void osmscout::Breaker::Reset ( )
pure virtual

Reset the state of the breaker.

Implemented in osmscout::ThreadedBreaker, and osmscout::QBreaker.


The documentation for this class was generated from the following file: