![]() |
LeechCraft
0.6.70-10870-g558588d6ec
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) |
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 () override final |
Protected Attributes | |
std::unique_ptr< WorkerType > | Worker_ |
std::unique_ptr< detail::InitializerBase< WorkerType > > | Initializer_ |
Additional Inherited Members | |
![]() | |
void | rotateFuncs () |
Definition at line 136 of file workerthreadbase.h.
|
protected |
Definition at line 140 of file workerthreadbase.h.
|
inline |
Definition at line 146 of file workerthreadbase.h.
|
inline |
Definition at line 153 of file workerthreadbase.h.
|
inline |
Definition at line 166 of file workerthreadbase.h.
|
inline |
Definition at line 171 of file workerthreadbase.h.
|
inlineoverrideprotectedvirtual |
Implements LeechCraft::Util::WorkerThreadBase.
Definition at line 205 of file workerthreadbase.h.
|
inlineoverrideprotectedvirtual |
Implements LeechCraft::Util::WorkerThreadBase.
Definition at line 198 of file workerthreadbase.h.
|
inline |
Definition at line 61 of file workerthreadbase.h.
|
inline |
Definition at line 82 of file workerthreadbase.h.
|
inline |
Definition at line 192 of file workerthreadbase.h.
References LeechCraft::Util::oral::sph::f, and LeechCraft::Util::WorkerThreadBase::ScheduleImpl().
|
inline |
Definition at line 186 of file workerthreadbase.h.
|
protected |
Definition at line 144 of file workerthreadbase.h.
|
protected |
Definition at line 142 of file workerthreadbase.h.