This class is a pure virtual class that can be implemented as a SerialTaskQueue or a ConcurrentTaskQueue.
More...
#include <trantor/utils/TaskQueue.h>
|
| virtual void | runTaskInQueue (const std::function< void()> &task)=0 |
|
virtual void | runTaskInQueue (std::function< void()> &&task)=0 |
| virtual std::string | getName () const |
| void | syncTaskInQueue (const std::function< void()> &task) |
| | Run a task in the queue synchronously. This means that the task is executed before the method returns.
|
|
|
| NonCopyable (const NonCopyable &)=delete |
|
NonCopyable & | operator= (const NonCopyable &)=delete |
|
| NonCopyable (NonCopyable &&) noexcept(true)=default |
|
NonCopyable & | operator= (NonCopyable &&) noexcept(true)=default |
This class is a pure virtual class that can be implemented as a SerialTaskQueue or a ConcurrentTaskQueue.
◆ getName()
| virtual std::string trantor::TaskQueue::getName |
( |
| ) |
const |
|
inlinevirtual |
◆ runTaskInQueue()
| virtual void trantor::TaskQueue::runTaskInQueue |
( |
const std::function< void()> & | task | ) |
|
|
pure virtual |
◆ syncTaskInQueue()
| void trantor::TaskQueue::syncTaskInQueue |
( |
const std::function< void()> & | task | ) |
|
|
inline |
Run a task in the queue synchronously. This means that the task is executed before the method returns.
- Parameters
-
The documentation for this class was generated from the following file: