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 (QString name)
 
int GetRealMaxThread (void)
 

Public Attributes

QMutex m_lock
 
QString m_name
 
QWaitCondition m_wait
 
bool m_running {true}
 
int m_expiryTimeout {120 * 1000}
 
int m_maxThreadCount {QThread::idealThreadCount()}
 
int m_reserveThread {0}
 
MPoolQueues m_runQueues
 
QSet< MPoolThread * > m_availThreads
 
QSet< MPoolThread * > m_runningThreads
 
QList< MPoolThread * > m_deleteThreads
 

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 ( QString  name)
inlineexplicit

Definition at line 216 of file mthreadpool.cpp.

Member Function Documentation

◆ GetRealMaxThread()

int MThreadPoolPrivate::GetRealMaxThread ( void  )
inline

Definition at line 219 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 225 of file mthreadpool.cpp.

◆ m_wait

QWaitCondition MThreadPoolPrivate::m_wait

◆ m_running

bool MThreadPoolPrivate::m_running {true}

◆ m_expiryTimeout

int MThreadPoolPrivate::m_expiryTimeout {120 * 1000}

◆ m_maxThreadCount

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

◆ m_reserveThread

int MThreadPoolPrivate::m_reserveThread {0}

Definition at line 230 of file mthreadpool.cpp.

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

◆ m_runQueues

MPoolQueues MThreadPoolPrivate::m_runQueues

◆ m_availThreads

QSet<MPoolThread*> MThreadPoolPrivate::m_availThreads

◆ m_runningThreads

QSet<MPoolThread*> MThreadPoolPrivate::m_runningThreads

◆ m_deleteThreads

QList<MPoolThread*> MThreadPoolPrivate::m_deleteThreads

◆ s_pool_lock

QMutex MThreadPoolPrivate::s_pool_lock
static

◆ s_pool

MThreadPool * MThreadPoolPrivate::s_pool = nullptr
static

Definition at line 238 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: