LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
LC::Util::WorkerThreadBase Class Referenceabstract

#include "workerthreadbase.h"

+ Inheritance diagram for LC::Util::WorkerThreadBase:
+ Collaboration diagram for LC::Util::WorkerThreadBase:

Signals

void rotateFuncs ()
 

Public Member Functions

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 Member Functions

void run () final
 
virtual void Initialize ()=0
 
virtual void Cleanup ()=0
 

Detailed Description

Definition at line 30 of file workerthreadbase.h.

Member Function Documentation

◆ Cleanup()

virtual void LC::Util::WorkerThreadBase::Cleanup ( )
protectedpure virtual

◆ GetQueueSize()

size_t LC::Util::WorkerThreadBase::GetQueueSize ( )
virtual

Definition at line 30 of file workerthreadbase.cpp.

◆ Initialize()

virtual void LC::Util::WorkerThreadBase::Initialize ( )
protectedpure virtual

◆ rotateFuncs

void LC::Util::WorkerThreadBase::rotateFuncs ( )
signal

◆ run()

void LC::Util::WorkerThreadBase::run ( )
finalprotected

Definition at line 36 of file workerthreadbase.cpp.

◆ ScheduleImpl() [1/2]

template<typename F , typename... Args>
QFuture<std::result_of_t<F (Args...)> > LC::Util::WorkerThreadBase::ScheduleImpl ( f,
Args &&...  args 
)
inline

Definition at line 71 of file workerthreadbase.h.

◆ ScheduleImpl() [2/2]

template<typename F >
QFuture<std::result_of_t<F ()> > LC::Util::WorkerThreadBase::ScheduleImpl ( func)
inline

Definition at line 50 of file workerthreadbase.h.

Referenced by LC::Util::WorkerThread< WorkerType >::SetQuitWait().

+ Here is the caller graph for this function:

◆ SetPaused()

void LC::Util::WorkerThreadBase::SetPaused ( bool  paused)

Definition at line 20 of file workerthreadbase.cpp.


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