#include <icy/interface.h>Subclassed by:
RunnableQueue< IPacket >,RunnableQueue< PacketT >,PlanarAudioPacket >,PlanarVideoPacket >,AsyncDiagnostic,AsyncLogWriter,RunnableQueue< T >,Task,TaskRunner,MediaCapture,InstallTask
Abstract interface for classes that can be run and cancelled.
| Return | Name | Description |
|---|---|---|
Runnable inline | ||
void | run | 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. |
inline
inline Runnable()void run()The run method will be called by the asynchronous context.
virtual inline
virtual inline void cancel(bool flag)Cancel the current task. The run() method should return ASAP.
virtual const inline
virtual inline bool cancelled() constReturns true when the task has been cancelled.
| Return | Name | Description |
|---|---|---|
std::atomic< bool > | exit |
std::atomic< bool > exit