Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::ctl::ControlTask Class Reference

Base class for control tasks. More...

#include <control_task.h>

Inheritance diagram for roc::ctl::ControlTask:
Collaboration diagram for roc::ctl::ControlTask:

Public Member Functions

bool completed () const
 True if the task succeeded, failed, or cancelled. More...
 
bool succeeded () const
 True if the task succeeded. More...
 
bool cancelled () const
 True if the task cancelled. More...
 
- Public Member Functions inherited from roc::core::MpscQueueNode< Tag >
MpscQueueDatampsc_queue_data () const
 Get pointer to internal data. More...
 
- Public Member Functions inherited from roc::core::ListNode< Tag >
ListDatalist_data () const
 Get pointer to internal data. More...
 

Protected Member Functions

template<class E >
 ControlTask (ControlTaskResult(E::*task_func)(ControlTask &))
 Initialize task. More...
 

Friends

class ControlTaskQueue
 

Additional Inherited Members

- Static Public Member Functions inherited from roc::core::MpscQueueNode< Tag >
static MpscQueueNodempsc_queue_node (MpscQueueData *data)
 Get pointer to parent node from pointer to internal data. More...
 
- Static Public Member Functions inherited from roc::core::ListNode< Tag >
static ListNodelist_node (ListData *data)
 Get pointer to parent node from pointer to internal data. More...
 

Detailed Description

Base class for control tasks.

Definition at line 53 of file control_task.h.

Constructor & Destructor Documentation

◆ ControlTask()

template<class E >
roc::ctl::ControlTask::ControlTask ( ControlTaskResult(E::*)(ControlTask &)  task_func)
inlineprotected

Initialize task.

Template Parameters
Eis a class derived from IControlTaskExecutor. task_func is a method of E which implements the task.

Definition at line 71 of file control_task.h.

Member Function Documentation

◆ cancelled()

bool roc::ctl::ControlTask::cancelled ( ) const

True if the task cancelled.

◆ completed()

bool roc::ctl::ControlTask::completed ( ) const

True if the task succeeded, failed, or cancelled.

◆ succeeded()

bool roc::ctl::ControlTask::succeeded ( ) const

True if the task succeeded.


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