LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
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::invoke_result_t< F > > ScheduleImpl (F func)
template<typename F, typename... Args>
QFuture< std::invoke_result_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 24 of file workerthreadbase.h.

Member Function Documentation

◆ Cleanup()

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

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

References Cleanup().

Referenced by Cleanup(), and run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetQueueSize()

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

Definition at line 24 of file workerthreadbase.cpp.

◆ Initialize()

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

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

References Initialize().

Referenced by Initialize(), and run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rotateFuncs

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

References rotateFuncs().

Referenced by rotateFuncs(), run(), ScheduleImpl(), and SetPaused().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ run()

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

Definition at line 30 of file workerthreadbase.cpp.

References Cleanup(), Initialize(), and rotateFuncs().

Here is the call graph for this function:

◆ ScheduleImpl() [1/2]

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

Definition at line 59 of file workerthreadbase.h.

References ScheduleImpl().

Here is the call graph for this function:

◆ ScheduleImpl() [2/2]

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

Definition at line 38 of file workerthreadbase.h.

References rotateFuncs().

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetPaused()

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

Definition at line 14 of file workerthreadbase.cpp.

References rotateFuncs().

Here is the call graph for this function:

The documentation for this class was generated from the following files:
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.17609.g3dde4097dd-build/leechcraft-0.6.70-17609-g3dde4097dd/src/util/threads/workerthreadbase.h
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.17609.g3dde4097dd-build/leechcraft-0.6.70-17609-g3dde4097dd/src/util/threads/workerthreadbase.cpp