LibreOffice Module cppu (master) 1
|
#include <thread.hxx>
Public Member Functions | |
ORequestThread (ThreadPoolHolder aThreadPool, JobQueue *, ::rtl::ByteSequence aThreadId, bool bAsynchron) | |
virtual | ~ORequestThread () override |
void | setTask (JobQueue *, const ::rtl::ByteSequence &aThreadId, bool bAsynchron) |
bool | launch () |
Public Member Functions inherited from salhelper::SimpleReferenceObject | |
SimpleReferenceObject () | |
void | acquire () |
void | release () |
Static Public Member Functions | |
static void * | operator new (std::size_t size) |
static void | operator delete (void *pointer) |
Static Public Member Functions inherited from salhelper::SimpleReferenceObject | |
static void * | operator new (std::size_t nSize) |
static void * | operator new (std::size_t nSize, std::nothrow_t const &rNothrow) |
static void | operator delete (void *pPtr) |
static void | operator delete (void *pPtr, std::nothrow_t const &rNothrow) |
Private Member Functions | |
virtual void SAL_CALL | run () override |
virtual void SAL_CALL | onTerminated () override |
Private Attributes | |
ThreadPoolHolder | m_aThreadPool |
JobQueue * | m_pQueue |
::rtl::ByteSequence | m_aThreadId |
bool | m_bAsynchron |
Additional Inherited Members | |
Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
oslInterlockedCount | m_nCount |
Definition at line 34 of file thread.hxx.
cppu_threadpool::ORequestThread::ORequestThread | ( | ThreadPoolHolder | aThreadPool, |
JobQueue * | , | ||
::rtl::ByteSequence | aThreadId, | ||
bool | bAsynchron | ||
) |
Definition at line 94 of file thread.cxx.
|
overridevirtual |
Definition at line 104 of file thread.cxx.
bool cppu_threadpool::ORequestThread::launch | ( | ) |
Definition at line 115 of file thread.cxx.
References salhelper::SimpleReferenceObject::acquire(), cppu_threadpool::ThreadAdmin::add_locked(), create(), m_aThreadPool, cppu_threadpool::ThreadAdmin::m_mutex, salhelper::SimpleReferenceObject::release(), and cppu_threadpool::ThreadAdmin::remove_locked().
|
overrideprivatevirtual |
Definition at line 138 of file thread.cxx.
References m_aThreadPool, and salhelper::SimpleReferenceObject::release().
Referenced by run().
|
inlinestatic |
Definition at line 51 of file thread.hxx.
|
inlinestatic |
Definition at line 48 of file thread.hxx.
References size.
|
overrideprivatevirtual |
Definition at line 144 of file thread.cxx.
References cppu_threadpool::JobQueue::enter(), cppu_threadpool::JobQueue::isEmpty(), m_aThreadId, m_aThreadPool, m_bAsynchron, m_pQueue, onTerminated(), uno_bindIdToCurrentThread(), and uno_releaseIdFromCurrentThread().
void cppu_threadpool::ORequestThread::setTask | ( | JobQueue * | , |
const ::rtl::ByteSequence & | aThreadId, | ||
bool | bAsynchron | ||
) |
Definition at line 106 of file thread.cxx.
References m_aThreadId, m_bAsynchron, and m_pQueue.
|
private |
Definition at line 60 of file thread.hxx.
|
private |
Definition at line 58 of file thread.hxx.
Referenced by launch(), onTerminated(), and run().
|
private |
Definition at line 61 of file thread.hxx.
|
private |
Definition at line 59 of file thread.hxx.