ROOT 6.18/05 Reference Guide |
Definition at line 116 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 118 of file TThreadPool.h.
|
private |
Definition at line 119 of file TThreadPool.h.
|
private |
Definition at line 120 of file TThreadPool.h.
|
inline |
Definition at line 123 of file TThreadPool.h.
|
inline |
Definition at line 147 of file TThreadPool.h.
|
inline |
Definition at line 162 of file TThreadPool.h.
|
inlineprivate |
Definition at line 329 of file TThreadPool.h.
|
inline |
Definition at line 212 of file TThreadPool.h.
|
inlinestaticprivate |
Definition at line 249 of file TThreadPool.h.
|
inline |
Definition at line 227 of file TThreadPool.h.
|
inlinestaticprivate |
Definition at line 324 of file TThreadPool.h.
|
inlinestaticprivate |
Definition at line 314 of file TThreadPool.h.
|
inlinestaticprivate |
Definition at line 232 of file TThreadPool.h.
|
inline |
Definition at line 170 of file TThreadPool.h.
|
inline |
Definition at line 185 of file TThreadPool.h.
|
inline |
Definition at line 223 of file TThreadPool.h.
|
inline |
Definition at line 219 of file TThreadPool.h.
|
private |
Definition at line 342 of file TThreadPool.h.
|
private |
Definition at line 350 of file TThreadPool.h.
|
private |
Definition at line 349 of file TThreadPool.h.
|
private |
Definition at line 338 of file TThreadPool.h.
|
private |
Definition at line 341 of file TThreadPool.h.
|
private |
Definition at line 351 of file TThreadPool.h.
|
private |
Definition at line 346 of file TThreadPool.h.
|
private |
Definition at line 347 of file TThreadPool.h.
|
private |
Definition at line 337 of file TThreadPool.h.
|
private |
Definition at line 348 of file TThreadPool.h.
|
private |
Definition at line 340 of file TThreadPool.h.
|
private |
Definition at line 344 of file TThreadPool.h.
|
private |
Definition at line 345 of file TThreadPool.h.
|
private |
Definition at line 339 of file TThreadPool.h.
|
private |
Definition at line 343 of file TThreadPool.h.