Base module
Runnable
Abstract interface for classes that can be run and cancelled.
#include <icy/interface.h>
class RunnableDefined in src/base/include/icy/interface.h:75
Public Methods
| Return | Name | Description |
|---|---|---|
Runnable inline | ||
~Runnable virtual | Defaulted destructor. | |
void | run virtual | The run method will be called by the asynchronous context. |
void | cancel virtual inline | Cancel the current task. The run() method should return ASAP. |
bool | cancelled virtual const inline | Returns true when the task has been cancelled. |
Runnable
inline
inline Runnable()Defined in src/base/include/icy/interface.h:78
~Runnable
virtual
virtual ~Runnable() = defaultDefined in src/base/include/icy/interface.h:83
Defaulted destructor.
run
virtual
virtual void run()Defined in src/base/include/icy/interface.h:86
The run method will be called by the asynchronous context.
Reimplemented by
MediaCapture::runAsyncLogWriter::runRunnableQueue::runRunnableQueue::runRunnableQueue::runRunnableQueue::runRunnableQueue::runTaskRunner::runInstallTask::runScheduler::runAsyncDiagnostic::runTask::runTask::run
cancel
virtual inline
virtual inline void cancel(bool flag = true)Defined in src/base/include/icy/interface.h:90
Cancel the current task. The run() method should return ASAP.
Reimplemented by
SyncQueue::cancelSyncQueue::cancelAsyncQueue::cancelAsyncQueue::cancelAsyncQueue::cancelAsyncQueue::cancelAsyncQueue::cancelInstallTask::cancel
cancelled
virtual const inline
virtual inline bool cancelled() constDefined in src/base/include/icy/interface.h:96
Returns true when the task has been cancelled.
Reimplemented by
Protected Attributes
| Return | Name | Description |
|---|---|---|
std::atomic< bool > | exit |
exit
std::atomic< bool > exit