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


class ThreadPool
struct std::default_delete< ThreadTask >

Detailed Description

Definition at line 25 of file threadpool.hxx.

Constructor & Destructor Documentation

virtual comphelper::ThreadTask::~ThreadTask ( )

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 307 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 ( )

execute this task

Definition at line 312 of file threadpool.cxx.

References doWork(), and SAL_WARN.

Friends And Related Function Documentation

friend struct std::default_delete< ThreadTask >

Definition at line 28 of file threadpool.hxx.

friend class ThreadPool

Definition at line 27 of file threadpool.hxx.

Member Data Documentation

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

Definition at line 29 of file threadpool.hxx.

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