|
MythTV
0.27pre
|
#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 201 of file mthreadpool.cpp.
Referenced by globalInstance().
| MThreadPool::~MThreadPool | ( | ) |
Definition at line 208 of file mthreadpool.cpp.
Definition at line 220 of file mthreadpool.cpp.
Referenced by MainServer::Stop(), HttpServer::~HttpServer(), ~MThreadPool(), and MythSocketManager::~MythSocketManager().
Definition at line 233 of file mthreadpool.cpp.
Referenced by ~MThreadPool().
|
static |
Definition at line 261 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(), MythCoreContext::SendEvent(), MythCoreContext::SendMessage(), DeleteThread::start(), TruncateThread::start(), TV::StartChannelEditMode(), HTTPLiveStream::StartStream(), Transcode::TranscodeFile(), MythContext::~MythContext(), and TV::~TV().
Definition at line 269 of file mthreadpool.cpp.
Referenced by MythCoreContextPrivate::~MythCoreContextPrivate().
Definition at line 280 of file mthreadpool.cpp.
Referenced by MythCoreContextPrivate::~MythCoreContextPrivate().
Definition at line 296 of file mthreadpool.cpp.
Referenced by ThemeChooser::customEvent(), MythDownloadManager::downloadRemoteFile(), ProgramInfoUpdater::insert(), MythUIImage::Load(), MythScreenType::LoadInBackground(), MythCommFlagPlayer::RebuildSeekTable(), BackendConnectionManager::ReconnectToBackend(), ProgramInfoCache::ScheduleLoad(), MythCoreContext::SendEvent(), MythCoreContext::SendMessage(), TruncateThread::start(), TV::StartChannelEditMode(), Transcode::TranscodeFile(), and TV::~TV().
| bool MThreadPool::tryStart | ( | QRunnable * | runnable, |
| QString | debugName | ||
| ) |
Definition at line 336 of file mthreadpool.cpp.
Definition at line 315 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().
Definition at line 443 of file mthreadpool.cpp.
Referenced by setExpiryTimeout().
Definition at line 449 of file mthreadpool.cpp.
Definition at line 455 of file mthreadpool.cpp.
Referenced by setMaxThreadCount().
Definition at line 461 of file mthreadpool.cpp.
Referenced by MainServer::MainServer().
Definition at line 467 of file mthreadpool.cpp.
Definition at line 509 of file mthreadpool.cpp.
Referenced by DeletePoolThreads(), MythContext::~MythContext(), and MythUIImage::~MythUIImage().
|
private |
Definition at line 342 of file mthreadpool.cpp.
Referenced by NotifyAvailable(), start(), startReserved(), and tryStart().
|
private |
Definition at line 391 of file mthreadpool.cpp.
|
private |
Definition at line 433 of file mthreadpool.cpp.
Definition at line 488 of file mthreadpool.cpp.
|
friend |
Definition at line 16 of file mthreadpool.h.
Referenced by TryStartInternal().
|
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.8.1.2