LeechCraft  0.6.70-10870-g558588d6ec
Modular cross-platform feature rich live environment.
LeechCraft::Util::WorkerThreadBase Class Referenceabstract

#include "workerthreadbase.h"

+ Inheritance diagram for LeechCraft::Util::WorkerThreadBase:
+ Collaboration diagram for LeechCraft::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 () override final
 
virtual void Initialize ()=0
 
virtual void Cleanup ()=0
 

Detailed Description

Definition at line 47 of file workerthreadbase.h.

Member Function Documentation

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

Implemented in LeechCraft::Util::WorkerThread< WorkerType >.

Referenced by run().

+ Here is the caller graph for this function:

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

Definition at line 47 of file workerthreadbase.cpp.

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

Implemented in LeechCraft::Util::WorkerThread< WorkerType >.

Referenced by run().

+ Here is the caller graph for this function:

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

Referenced by run(), and SetPaused().

+ Here is the caller graph for this function:

void LeechCraft::Util::WorkerThreadBase::run ( )
finaloverrideprotected

Definition at line 53 of file workerthreadbase.cpp.

References Cleanup(), Initialize(), rotateFuncs(), and LeechCraft::Util::swap().

+ Here is the call graph for this function:

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

Definition at line 61 of file workerthreadbase.h.

Referenced by LeechCraft::Util::WorkerThread< WorkerType >::ScheduleImpl(), and LeechCraft::Util::WorkerThread< WorkerType >::~WorkerThread().

+ Here is the caller graph for this function:

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

Definition at line 82 of file workerthreadbase.h.

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

Definition at line 37 of file workerthreadbase.cpp.

References rotateFuncs().


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