LibreOffice Module comphelper (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
comphelper::ThreadTask Class Referenceabstract

#include <threadpool.hxx>

Public Member Functions

 ThreadTask (std::shared_ptr< ThreadTaskTag > pTag)
 

Protected Member Functions

virtual void doWork ()=0
 override to get your task performed by the pool More...
 
virtual ~ThreadTask ()
 once pushed ThreadTasks are destroyed by the pool More...
 

Private Member Functions

void exec ()
 execute this task More...
 

Private Attributes

std::shared_ptr< ThreadTaskTagmpTag
 

Friends

class ThreadPool
 
struct std::default_delete< ThreadTask >
 

Detailed Description

Definition at line 26 of file threadpool.hxx.

Constructor & Destructor Documentation

◆ ~ThreadTask()

virtual comphelper::ThreadTask::~ThreadTask ( )
inlineprotectedvirtual

once pushed ThreadTasks are destroyed by the pool

Definition at line 38 of file threadpool.hxx.

◆ ThreadTask()

comphelper::ThreadTask::ThreadTask ( std::shared_ptr< ThreadTaskTag pTag)

Definition at line 311 of file threadpool.cxx.

Member Function Documentation

◆ doWork()

virtual void comphelper::ThreadTask::doWork ( )
protectedpure virtual

override to get your task performed by the pool

Referenced by exec().

◆ exec()

void comphelper::ThreadTask::exec ( )
private

execute this task

Definition at line 316 of file threadpool.cxx.

References doWork(), and SAL_WARN.

Friends And Related Function Documentation

◆ std::default_delete< ThreadTask >

friend struct std::default_delete< ThreadTask >
friend

Definition at line 28 of file threadpool.hxx.

◆ ThreadPool

friend class ThreadPool
friend

Definition at line 28 of file threadpool.hxx.

Member Data Documentation

◆ mpTag

std::shared_ptr<ThreadTaskTag> comphelper::ThreadTask::mpTag
private

Definition at line 30 of file threadpool.hxx.


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