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

Public Member Functions

 MThreadPoolPrivate (QString name)
int GetRealMaxThread (void) const

Public Attributes

QMutex m_lock
QString m_name
QWaitCondition m_wait
bool m_running {true}
std::chrono::milliseconds m_expiryTimeout {2min}
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 QRecursiveMutex s_pool_lock
static MThreadPools_pool = nullptr
static QList< MThreadPool * > s_all_pools

Detailed Description

Definition at line 215 of file mthreadpool.cpp.

Constructor & Destructor Documentation

◆ MThreadPoolPrivate()

MThreadPoolPrivate::MThreadPoolPrivate ( QString  name)

Definition at line 218 of file mthreadpool.cpp.

Member Function Documentation

◆ GetRealMaxThread()

int MThreadPoolPrivate::GetRealMaxThread ( void  ) const

Definition at line 221 of file mthreadpool.cpp.

Referenced by MThreadPool::TryStartInternal().

Member Data Documentation

◆ m_lock

QMutex MThreadPoolPrivate::m_lock

◆ 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_expiryTimeout

std::chrono::milliseconds MThreadPoolPrivate::m_expiryTimeout {2min}

◆ m_maxThreadCount

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

◆ m_reserveThread

int MThreadPoolPrivate::m_reserveThread {0}

◆ 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

QRecursiveMutex MThreadPoolPrivate::s_pool_lock

◆ s_pool

MThreadPool * MThreadPoolPrivate::s_pool = nullptr

Definition at line 244 of file mthreadpool.cpp.

Referenced by MThreadPool::globalInstance().

◆ s_all_pools

QList< MThreadPool * > MThreadPoolPrivate::s_all_pools

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