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 (const 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 25 of file threadpool.hxx.

Constructor & Destructor Documentation

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

once pushed ThreadTasks are destroyed by the pool

Definition at line 37 of file threadpool.hxx.

comphelper::ThreadTask::ThreadTask ( const std::shared_ptr< ThreadTaskTag > &  pTag)

Definition at line 270 of file threadpool.cxx.

Member Function Documentation

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

override to get your task performed by the pool

Referenced by exec().

void comphelper::ThreadTask::exec ( )
private

execute this task

Definition at line 275 of file threadpool.cxx.

References doWork(), mpTag, and SAL_WARN.

Friends And Related Function Documentation

friend struct std::default_delete< ThreadTask >
friend

Definition at line 28 of file threadpool.hxx.

friend class ThreadPool
friend

Definition at line 27 of file threadpool.hxx.

Member Data Documentation

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

Definition at line 29 of file threadpool.hxx.

Referenced by exec().


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