|
MythTV
0.26-pre
|
#include <mthreadpool.h>
Public Member Functions | |
| MThreadPool (const QString &name) | |
| ~MThreadPool () | |
| void | Stop (void) |
| void | DeletePoolThreads (void) |
| void | start (QRunnable *runnable, QString debugName, int priority=0) |
| bool | tryStart (QRunnable *runnable, QString debugName) |
| void | startReserved (QRunnable *runnable, QString debugName, int waitForAvailMS=0) |
| int | expiryTimeout (void) const |
| void | setExpiryTimeout (int expiryTimeout) |
| int | maxThreadCount (void) const |
| void | setMaxThreadCount (int maxThreadCount) |
| int | activeThreadCount (void) const |
| void | waitForDone (void) |
Static Public Member Functions | |
| static MThreadPool * | globalInstance (void) |
| static void | StopAllPools (void) |
| static void | ShutdownAllPools (void) |
Private Member Functions | |
| bool | TryStartInternal (QRunnable *, QString, bool) |
| void | NotifyAvailable (MPoolThread *) |
| void | NotifyDone (MPoolThread *) |
| void | ReleaseThread (void) |
Private Attributes | |
| MThreadPoolPrivate * | m_priv |
Friends | |
| class | MPoolThread |
Definition at line 14 of file mthreadpool.h.
| MThreadPool::MThreadPool | ( | const QString & | name | ) |
Definition at line 200 of file mthreadpool.cpp.
Referenced by globalInstance().
Definition at line 207 of file mthreadpool.cpp.
Definition at line 219 of file mthreadpool.cpp.
Referenced by MainServer::Stop(), HttpServer::~HttpServer(), ~MThreadPool(), and MythSocketManager::~MythSocketManager().
Definition at line 232 of file mthreadpool.cpp.
Referenced by ~MThreadPool().
| MThreadPool * MThreadPool::globalInstance | ( | void | ) | [static] |
Definition at line 260 of file mthreadpool.cpp.
Referenced by ThemeChooser::customEvent(), MythSystemEventHandler::customEvent(), MythDownloadManager::downloadRemoteFile(), MainServer::HandleQueryFreeSpace(), MainServer::HandleQueryFreeSpaceSummary(), ProgramInfoUpdater::insert(), MythScreenType::LoadInBackground(), MainServer::MainServer(), MythCommFlagPlayer::RebuildSeekTable(), BackendConnectionManager::ReconnectToBackend(), ProgramInfoCache::ScheduleLoad(), DeleteThread::start(), TruncateThread::start(), TV::StartChannelEditMode(), HTTPLiveStream::StartStream(), Transcode::TranscodeFile(), MythContext::~MythContext(), and TV::~TV().
| void MThreadPool::StopAllPools | ( | void | ) | [static] |
Definition at line 268 of file mthreadpool.cpp.
Referenced by MythCoreContextPrivate::~MythCoreContextPrivate().
| void MThreadPool::ShutdownAllPools | ( | void | ) | [static] |
Definition at line 279 of file mthreadpool.cpp.
Referenced by MythCoreContextPrivate::~MythCoreContextPrivate().
| void MThreadPool::start | ( | QRunnable * | runnable, |
| QString | debugName, | ||
| int | priority = 0 |
||
| ) |
Definition at line 295 of file mthreadpool.cpp.
Referenced by ThemeChooser::customEvent(), MythDownloadManager::downloadRemoteFile(), ProgramInfoUpdater::insert(), MythUIImage::Load(), MythScreenType::LoadInBackground(), MythCommFlagPlayer::RebuildSeekTable(), BackendConnectionManager::ReconnectToBackend(), ProgramInfoCache::ScheduleLoad(), TruncateThread::start(), TV::StartChannelEditMode(), Transcode::TranscodeFile(), and TV::~TV().
| bool MThreadPool::tryStart | ( | QRunnable * | runnable, |
| QString | debugName | ||
| ) |
Definition at line 335 of file mthreadpool.cpp.
| void MThreadPool::startReserved | ( | QRunnable * | runnable, |
| QString | debugName, | ||
| int | waitForAvailMS = 0 |
||
| ) |
Definition at line 314 of file mthreadpool.cpp.
Referenced by MythSystemEventHandler::customEvent(), MainServer::HandleQueryFreeSpace(), MainServer::HandleQueryFreeSpaceSummary(), MainServer::MainServer(), HttpServer::newTcpConnection(), MythSocketManager::readyRead(), MainServer::readyRead(), DeleteThread::start(), and HTTPLiveStream::StartStream().
| int MThreadPool::expiryTimeout | ( | void | ) | const |
Definition at line 442 of file mthreadpool.cpp.
Referenced by setExpiryTimeout().
| void MThreadPool::setExpiryTimeout | ( | int | expiryTimeout | ) |
Definition at line 448 of file mthreadpool.cpp.
| int MThreadPool::maxThreadCount | ( | void | ) | const |
Definition at line 454 of file mthreadpool.cpp.
Referenced by setMaxThreadCount().
| void MThreadPool::setMaxThreadCount | ( | int | maxThreadCount | ) |
Definition at line 460 of file mthreadpool.cpp.
Referenced by MainServer::MainServer().
| int MThreadPool::activeThreadCount | ( | void | ) | const |
Definition at line 466 of file mthreadpool.cpp.
Definition at line 508 of file mthreadpool.cpp.
Referenced by DeletePoolThreads(), MythContext::~MythContext(), and MythUIImage::~MythUIImage().
| bool MThreadPool::TryStartInternal | ( | QRunnable * | runnable, |
| QString | debugName, | ||
| bool | reserved | ||
| ) | [private] |
Definition at line 341 of file mthreadpool.cpp.
Referenced by NotifyAvailable(), start(), startReserved(), and tryStart().
| void MThreadPool::NotifyAvailable | ( | MPoolThread * | thread | ) | [private] |
Definition at line 390 of file mthreadpool.cpp.
| void MThreadPool::NotifyDone | ( | MPoolThread * | thread | ) | [private] |
Definition at line 432 of file mthreadpool.cpp.
| void MThreadPool::ReleaseThread | ( | void | ) | [private] |
Definition at line 487 of file mthreadpool.cpp.
friend class MPoolThread [friend] |
Definition at line 16 of file mthreadpool.h.
Referenced by TryStartInternal().
MThreadPoolPrivate* MThreadPool::m_priv [private] |
Definition at line 54 of file mthreadpool.h.
Referenced by activeThreadCount(), DeletePoolThreads(), expiryTimeout(), maxThreadCount(), NotifyAvailable(), NotifyDone(), ReleaseThread(), setExpiryTimeout(), setMaxThreadCount(), start(), startReserved(), Stop(), tryStart(), TryStartInternal(), waitForDone(), and ~MThreadPool().
1.7.6.1