![]() |
LeechCraft 0.6.70-14794-g33744ae6ce
Modular cross-platform feature rich live environment.
|
#include "workerthreadbase.h"
Public Member Functions | |
WorkerThread (QObject *parent=nullptr) | |
template<typename... Args> | |
WorkerThread (QObject *parent, const Args &... args) | |
template<typename Head , typename... Rest, typename = std::enable_if_t< !std::is_base_of<QObject, std::remove_pointer_t<std::decay_t<Head>>>::value >> | |
WorkerThread (const Head &head, const Rest &... rest) | |
~WorkerThread () | |
void | SetAutoQuit (bool autoQuit) |
void | SetQuitWait (unsigned long wait) |
template<typename F , typename... Args> | |
QFuture< std::result_of_t< F(WorkerType *, Args...)> > | ScheduleImpl (F f, Args &&... args) |
template<typename F > | |
QFuture< std::result_of_t< F()> > | ScheduleImpl (F func) |
template<typename F , typename... Args> | |
QFuture< std::result_of_t< F(Args...)> > | ScheduleImpl (F f, Args &&... args) |
![]() | |
void | SetPaused (bool) |
template<typename F > | |
QFuture< std::result_of_t< F()> > | ScheduleImpl (F func) |
template<typename F , typename... Args> | |
QFuture< std::result_of_t< F(Args...)> > | ScheduleImpl (F f, Args &&... args) |
virtual size_t | GetQueueSize () |
Protected Types | |
using | W = WorkerType |
Protected Member Functions | |
void | Initialize () override |
void | Cleanup () override |
![]() | |
void | run () final |
virtual void | Initialize ()=0 |
virtual void | Cleanup ()=0 |
Protected Attributes | |
std::unique_ptr< WorkerType > | Worker_ |
std::unique_ptr< detail::InitializerBase< WorkerType > > | Initializer_ |
Additional Inherited Members | |
![]() | |
void | rotateFuncs () |
Definition at line 113 of file workerthreadbase.h.
|
protected |
Definition at line 118 of file workerthreadbase.h.
|
inline |
Definition at line 124 of file workerthreadbase.h.
|
inline |
Definition at line 131 of file workerthreadbase.h.
|
inline |
Definition at line 144 of file workerthreadbase.h.
|
inline |
Definition at line 149 of file workerthreadbase.h.
|
inlineoverrideprotectedvirtual |
Implements LC::Util::WorkerThreadBase.
Definition at line 188 of file workerthreadbase.h.
|
inlineoverrideprotectedvirtual |
Implements LC::Util::WorkerThreadBase.
Definition at line 181 of file workerthreadbase.h.
|
inline |
Definition at line 59 of file workerthreadbase.h.
|
inline |
Definition at line 175 of file workerthreadbase.h.
|
inline |
Definition at line 38 of file workerthreadbase.h.
|
inline |
Definition at line 162 of file workerthreadbase.h.
|
inline |
Definition at line 167 of file workerthreadbase.h.
|
protected |
Definition at line 122 of file workerthreadbase.h.
|
protected |
Definition at line 120 of file workerthreadbase.h.