ROOT 6.10/09 Reference Guide |
Definition at line 113 of file TThreadPool.h.
Public Member Functions | |
TThreadPool (size_t threadsCount, bool needDbg=false) | |
~TThreadPool () | |
void | AddThread () |
void | Drain () |
size_t | IdleThreads () const |
void | PushTask (typename TThreadPoolTask< aTask, aParam >::task_t &task, aParam param) |
void | Stop (bool processRemainingJobs=false) |
size_t | SuccessfulTasks () const |
size_t | TasksCount () const |
Private Types | |
typedef TThreadPoolTask< aTask, aParam > | task_t |
typedef std::queue< task_t * > | taskqueue_t |
typedef std::vector< TThread * > | threads_array_t |
Private Member Functions | |
void | DbgLog (const std::string &msg) |
Static Private Member Functions | |
static void * | Executor (void *arg) |
static bool | IsThreadActive (TThread *pThread) |
static void * | JoinHelper (void *arg) |
static void * | Monitor (void *arg) |
Private Attributes | |
TCondition * | fAllTasksDone |
TMutex | fDbgOutputMutex |
size_t | fIdleThreads |
TMutex | fMutex |
TMutex | fMutexAllTasksDone |
bool | fSilent |
volatile bool | fStopped |
size_t | fSuccessfulTasks |
taskqueue_t | fTasks |
size_t | fTasksCount |
TCondition * | fThreadAvailable |
TThread * | fThreadJoinHelper |
TThread * | fThreadMonitor |
TCondition * | fThreadNeeded |
threads_array_t | fThreads |
Additional Inherited Members | |
Protected Member Functions inherited from TNonCopyable | |
TNonCopyable () | |
~TNonCopyable () | |
#include <TThreadPool.h>
|
private |
Definition at line 115 of file TThreadPool.h.
|
private |
Definition at line 116 of file TThreadPool.h.
|
private |
Definition at line 117 of file TThreadPool.h.
|
inline |
Definition at line 120 of file TThreadPool.h.
|
inline |
Definition at line 144 of file TThreadPool.h.
|
inline |
Definition at line 159 of file TThreadPool.h.
|
inlineprivate |
Definition at line 326 of file TThreadPool.h.
|
inline |
Definition at line 209 of file TThreadPool.h.
|
inlinestaticprivate |
Definition at line 246 of file TThreadPool.h.
|
inline |
Definition at line 224 of file TThreadPool.h.
|
inlinestaticprivate |
Definition at line 321 of file TThreadPool.h.
|
inlinestaticprivate |
Definition at line 311 of file TThreadPool.h.
|
inlinestaticprivate |
Definition at line 229 of file TThreadPool.h.
|
inline |
Definition at line 167 of file TThreadPool.h.
|
inline |
Definition at line 182 of file TThreadPool.h.
|
inline |
Definition at line 220 of file TThreadPool.h.
|
inline |
Definition at line 216 of file TThreadPool.h.
|
private |
Definition at line 339 of file TThreadPool.h.
|
private |
Definition at line 347 of file TThreadPool.h.
|
private |
Definition at line 346 of file TThreadPool.h.
|
private |
Definition at line 335 of file TThreadPool.h.
|
private |
Definition at line 338 of file TThreadPool.h.
|
private |
Definition at line 348 of file TThreadPool.h.
|
private |
Definition at line 343 of file TThreadPool.h.
|
private |
Definition at line 344 of file TThreadPool.h.
|
private |
Definition at line 334 of file TThreadPool.h.
|
private |
Definition at line 345 of file TThreadPool.h.
|
private |
Definition at line 337 of file TThreadPool.h.
|
private |
Definition at line 341 of file TThreadPool.h.
|
private |
Definition at line 342 of file TThreadPool.h.
|
private |
Definition at line 336 of file TThreadPool.h.
|
private |
Definition at line 340 of file TThreadPool.h.