LibreOffice Module cppu (master) 1
Public Member Functions | Public Attributes | Private Attributes | List of all members
cppu_threadpool::ThreadAdmin Class Reference

#include <threadpool.hxx>

Public Member Functions

 ThreadAdmin ()
 
 ~ThreadAdmin ()
 
void remove (rtl::Reference< ORequestThread > const &)
 
void join ()
 
bool add_locked (rtl::Reference< ORequestThread > const &)
 
void remove_locked (rtl::Reference< ORequestThread > const &)
 

Public Attributes

std::mutex m_mutex
 

Private Attributes

std::deque< rtl::Reference< ORequestThread > > m_deque
 
bool m_disposed
 

Detailed Description

Definition at line 96 of file threadpool.hxx.

Constructor & Destructor Documentation

◆ ThreadAdmin()

cppu_threadpool::ThreadAdmin::ThreadAdmin ( )

Definition at line 39 of file thread.cxx.

References m_disposed.

◆ ~ThreadAdmin()

cppu_threadpool::ThreadAdmin::~ThreadAdmin ( )

Definition at line 41 of file thread.cxx.

References m_deque, and SAL_WARN_IF.

Member Function Documentation

◆ add_locked()

bool cppu_threadpool::ThreadAdmin::add_locked ( rtl::Reference< ORequestThread > const &  p)

Definition at line 46 of file thread.cxx.

References m_deque, m_disposed, and p.

Referenced by cppu_threadpool::ORequestThread::launch().

◆ join()

void cppu_threadpool::ThreadAdmin::join ( )

Definition at line 67 of file thread.cxx.

References m_deque, m_disposed, and m_mutex.

Referenced by cppu_threadpool::ThreadPool::joinWorkers().

◆ remove()

void cppu_threadpool::ThreadAdmin::remove ( rtl::Reference< ORequestThread > const &  p)

Definition at line 61 of file thread.cxx.

References m_mutex, p, and remove_locked().

◆ remove_locked()

void cppu_threadpool::ThreadAdmin::remove_locked ( rtl::Reference< ORequestThread > const &  p)

Definition at line 56 of file thread.cxx.

References m_deque, and p.

Referenced by cppu_threadpool::ORequestThread::launch(), and remove().

Member Data Documentation

◆ m_deque

std::deque< rtl::Reference< ORequestThread > > cppu_threadpool::ThreadAdmin::m_deque
private

Definition at line 110 of file threadpool.hxx.

Referenced by add_locked(), join(), remove_locked(), and ~ThreadAdmin().

◆ m_disposed

bool cppu_threadpool::ThreadAdmin::m_disposed
private

Definition at line 111 of file threadpool.hxx.

Referenced by add_locked(), and join().

◆ m_mutex

std::mutex cppu_threadpool::ThreadAdmin::m_mutex

Definition at line 107 of file threadpool.hxx.

Referenced by join(), cppu_threadpool::ORequestThread::launch(), and remove().


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