MythTV  master
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
MThreadPoolPrivate Class Reference
Collaboration diagram for MThreadPoolPrivate:
Collaboration graph
[legend]

Public Member Functions

 MThreadPoolPrivate (const QString &name)
 
int GetRealMaxThread (void)
 

Public Attributes

QMutex m_lock
 
QString m_name
 
QWaitCondition m_wait
 
bool m_running {true}
 
int m_expiry_timeout {120 * 1000}
 
int m_max_thread_count {QThread::idealThreadCount()}
 
int m_reserve_thread {0}
 
MPoolQueues m_run_queues
 
QSet< MPoolThread * > m_avail_threads
 
QSet< MPoolThread * > m_running_threads
 
QList< MPoolThread * > m_delete_threads
 

Static Public Attributes

static QMutex s_pool_lock
 
static MThreadPools_pool = nullptr
 
static QList< MThreadPool * > s_all_pools
 

Detailed Description

Definition at line 213 of file mthreadpool.cpp.

Constructor & Destructor Documentation

◆ MThreadPoolPrivate()

MThreadPoolPrivate::MThreadPoolPrivate ( const QString &  name)
inlineexplicit

Definition at line 216 of file mthreadpool.cpp.

Member Function Documentation

◆ GetRealMaxThread()

int MThreadPoolPrivate::GetRealMaxThread ( void  )
inline

Definition at line 221 of file mthreadpool.cpp.

Referenced by MThreadPool::TryStartInternal().

Member Data Documentation

◆ m_lock

QMutex MThreadPoolPrivate::m_lock
mutable

◆ m_name

QString MThreadPoolPrivate::m_name

Definition at line 227 of file mthreadpool.cpp.

◆ m_wait

QWaitCondition MThreadPoolPrivate::m_wait

◆ m_running

bool MThreadPoolPrivate::m_running {true}

◆ m_expiry_timeout

int MThreadPoolPrivate::m_expiry_timeout {120 * 1000}

◆ m_max_thread_count

int MThreadPoolPrivate::m_max_thread_count {QThread::idealThreadCount()}

◆ m_reserve_thread

int MThreadPoolPrivate::m_reserve_thread {0}

Definition at line 232 of file mthreadpool.cpp.

Referenced by MThreadPool::ReleaseThread(), and MThreadPool::TryStartInternal().

◆ m_run_queues

MPoolQueues MThreadPoolPrivate::m_run_queues

◆ m_avail_threads

QSet<MPoolThread*> MThreadPoolPrivate::m_avail_threads

◆ m_running_threads

QSet<MPoolThread*> MThreadPoolPrivate::m_running_threads

◆ m_delete_threads

QList<MPoolThread*> MThreadPoolPrivate::m_delete_threads

◆ s_pool_lock

QMutex MThreadPoolPrivate::s_pool_lock
static

◆ s_pool

MThreadPool * MThreadPoolPrivate::s_pool = nullptr
static

Definition at line 240 of file mthreadpool.cpp.

Referenced by MThreadPool::globalInstance().

◆ s_all_pools

QList< MThreadPool * > MThreadPoolPrivate::s_all_pools
static

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