MythTV
master
|
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 MThreadPool * | s_pool = nullptr |
static QList< MThreadPool * > | s_all_pools |
Definition at line 215 of file mthreadpool.cpp.
|
inlineexplicit |
Definition at line 218 of file mthreadpool.cpp.
|
inline |
Definition at line 221 of file mthreadpool.cpp.
Referenced by MThreadPool::TryStartInternal().
|
mutable |
Definition at line 226 of file mthreadpool.cpp.
Referenced by MThreadPool::activeThreadCount(), MThreadPool::DeletePoolThreads(), MThreadPool::expiryTimeout(), MThreadPool::maxThreadCount(), MThreadPool::NotifyAvailable(), MThreadPool::NotifyDone(), MThreadPool::ReleaseThread(), MThreadPool::setExpiryTimeout(), MThreadPool::setMaxThreadCount(), MThreadPool::start(), MThreadPool::startReserved(), MThreadPool::Stop(), MThreadPool::tryStart(), and MThreadPool::waitForDone().
QString MThreadPoolPrivate::m_name |
Definition at line 227 of file mthreadpool.cpp.
QWaitCondition MThreadPoolPrivate::m_wait |
Definition at line 228 of file mthreadpool.cpp.
Referenced by MThreadPool::NotifyAvailable(), MThreadPool::NotifyDone(), MThreadPool::startReserved(), MThreadPool::Stop(), and MThreadPool::waitForDone().
Definition at line 229 of file mthreadpool.cpp.
Referenced by MThreadPool::NotifyAvailable(), MThreadPool::Stop(), MThreadPool::TryStartInternal(), and MThreadPool::waitForDone().
std::chrono::milliseconds MThreadPoolPrivate::m_expiryTimeout {2min} |
Definition at line 230 of file mthreadpool.cpp.
Referenced by MThreadPool::expiryTimeout(), MThreadPool::setExpiryTimeout(), and MThreadPool::TryStartInternal().
int MThreadPoolPrivate::m_maxThreadCount {QThread::idealThreadCount()} |
Definition at line 231 of file mthreadpool.cpp.
Referenced by GetRealMaxThread(), MThreadPool::maxThreadCount(), MThreadPool::setMaxThreadCount(), and MThreadPool::startReserved().
int MThreadPoolPrivate::m_reserveThread {0} |
Definition at line 232 of file mthreadpool.cpp.
Referenced by GetRealMaxThread(), MThreadPool::ReleaseThread(), and MThreadPool::TryStartInternal().
MPoolQueues MThreadPoolPrivate::m_runQueues |
Definition at line 234 of file mthreadpool.cpp.
Referenced by MThreadPool::NotifyAvailable(), MThreadPool::start(), and MThreadPool::waitForDone().
QSet<MPoolThread*> MThreadPoolPrivate::m_availThreads |
Definition at line 235 of file mthreadpool.cpp.
Referenced by MThreadPool::activeThreadCount(), MThreadPool::DeletePoolThreads(), MThreadPool::NotifyAvailable(), MThreadPool::NotifyDone(), MThreadPool::startReserved(), MThreadPool::Stop(), MThreadPool::TryStartInternal(), and MThreadPool::waitForDone().
QSet<MPoolThread*> MThreadPoolPrivate::m_runningThreads |
Definition at line 236 of file mthreadpool.cpp.
Referenced by MThreadPool::activeThreadCount(), MThreadPool::NotifyAvailable(), MThreadPool::NotifyDone(), MThreadPool::startReserved(), MThreadPool::Stop(), MThreadPool::TryStartInternal(), and MThreadPool::waitForDone().
QList<MPoolThread*> MThreadPoolPrivate::m_deleteThreads |
Definition at line 237 of file mthreadpool.cpp.
Referenced by MThreadPool::DeletePoolThreads(), MThreadPool::NotifyAvailable(), MThreadPool::NotifyDone(), MThreadPool::TryStartInternal(), and MThreadPool::waitForDone().
|
static |
Definition at line 242 of file mthreadpool.cpp.
Referenced by MThreadPool::globalInstance(), MThreadPool::MThreadPool(), MThreadPool::ShutdownAllPools(), MThreadPool::StopAllPools(), and MThreadPool::~MThreadPool().
|
static |
Definition at line 244 of file mthreadpool.cpp.
Referenced by MThreadPool::globalInstance().
|
static |
Definition at line 245 of file mthreadpool.cpp.
Referenced by MThreadPool::MThreadPool(), MThreadPool::ShutdownAllPools(), MThreadPool::StopAllPools(), and MThreadPool::~MThreadPool().