#include <ThreadsCounter.h>
Corresponding C++ library: Root
<group Other_Classes>
Definition at line 172 of file ThreadsCounter.h.
◆ ThreadAttributes
Enumerator |
---|
kNoAttributes | |
kMtLoadingAttributes | |
kMtRegenAttributes | |
kStRegenAttributes | |
kMtDisplayAttributes | |
kMtModelerAttributes | |
kAllAttributes | |
Definition at line 175 of file ThreadsCounter.h.
◆ ThreadsCounter()
ThreadsCounter::ThreadsCounter |
( |
| ) |
|
|
inlineprotected |
◆ ~ThreadsCounter()
ThreadsCounter::~ThreadsCounter |
( |
| ) |
|
|
inlineprotected |
◆ addReactor()
Adds reactor into threads counter reactors chain.
- Parameters
-
pReactor | [in] Function to add into reactors chain. |
- Returns
- Returns true if reactor added; returns false if reactor already available in chain.
◆ decrease()
void ThreadsCounter::decrease |
( |
unsigned |
nThreads, |
|
|
const unsigned * |
aThreads |
|
) |
| |
|
inline |
Decrease execution threads count.
- Parameters
-
nThreads | [in] Count of threads in aThreads array. |
aThreads | [in] Thread ID's array. |
Definition at line 247 of file ThreadsCounter.h.
◆ decreaseProc()
void ThreadsCounter::decreaseProc |
( |
unsigned |
nThreads, |
|
|
const unsigned * |
aThreads |
|
) |
| |
|
protected |
◆ getMainThreadFunc()
Returns function for execution in the external main thread.
Definition at line 275 of file ThreadsCounter.h.
◆ getThreadPoolService()
◆ hasReactor()
Checks whether reactor is available in threads counter reactors chain.
- Parameters
-
pReactor | [in] Reactor to check. |
◆ hasThread()
bool ThreadsCounter::hasThread |
( |
unsigned |
nThreadId, |
|
|
unsigned * |
pThreadAttributes |
|
) |
| |
|
inline |
Returns true if increase called for specified thread. Optionally returns thread attributes.
- Parameters
-
nThreadId | [in] Requested thread ID. |
pThreadAttributes | [out] If set takes requested thread attributes. |
Definition at line 264 of file ThreadsCounter.h.
◆ hasThreadProc()
bool ThreadsCounter::hasThreadProc |
( |
unsigned |
nThreadId, |
|
|
unsigned * |
pThreadAttributes |
|
) |
| |
|
protected |
◆ increase()
Increase execution threads count.
- Parameters
-
nThreads | [in] Count of threads in aThreads array. |
aThreads | [in] Thread ID's array. |
nThreadAttributes | [in] Set of attributes for running threads. |
Definition at line 240 of file ThreadsCounter.h.
◆ increaseProc()
void ThreadsCounter::increaseProc |
( |
unsigned |
nThreads, |
|
|
const unsigned * |
aThreads, |
|
|
unsigned |
nThreadAttributes |
|
) |
| |
|
protected |
◆ nReactors()
int ThreadsCounter::nReactors |
( |
| ) |
const |
Returns count of reactors in threads counter reactors chain.
◆ operator bool()
ThreadsCounter::operator bool |
( |
| ) |
const |
|
inline |
◆ removeReactor()
Removes reactor from threads counter reactors chain.
- Parameters
-
pReactor | [in] Reactor to remove from reactors chain. |
- Returns
- Returns true if reactor removed; returns false if reactor isn't available in chain.
◆ setMainThreadFunc()
Setup function for execution in the external main thread.
- Parameters
-
func | [in] Function for execution in the main thread. |
Definition at line 271 of file ThreadsCounter.h.
◆ setThreadPoolService()
◆ startThread()
void ThreadsCounter::startThread |
( |
| ) |
|
|
inline |
◆ startThreadProc()
void ThreadsCounter::startThreadProc |
( |
| ) |
|
|
protected |
◆ stopThread()
void ThreadsCounter::stopThread |
( |
| ) |
|
|
inline |
◆ stopThreadProc()
void ThreadsCounter::stopThreadProc |
( |
| ) |
|
|
protected |
◆ m_count
◆ m_mainThreadFunc
◆ m_threadPool
The documentation for this class was generated from the following file: