Beatmup
|
Context class implementation (pimpl) More...
Classes | |
class | ThreadPoolEventListener |
Thread pool event listener. More... | |
Public Member Functions | |
Impl (const PoolIndex numThreadPools) | |
~Impl () | |
float | performTask (PoolIndex pool, AbstractTask &task) |
void | repeatTask (PoolIndex pool, AbstractTask &task, bool abortCurrent) |
Job | submitTask (const PoolIndex pool, AbstractTask &task) |
Job | submitPersistentTask (const PoolIndex pool, AbstractTask &task) |
void | waitForJob (const PoolIndex pool, Job job) |
bool | abortJob (const PoolIndex pool, Job job) |
void | wait (const PoolIndex pool) |
bool | busy (const PoolIndex pool) |
void | check (const PoolIndex pool) |
const ThreadIndex | maxAllowedWorkerCount (const PoolIndex pool) const |
void | limitWorkerCount (const PoolIndex pool, ThreadIndex maxValue) |
bool | isGpuQueried () const |
bool | isGpuReady () const |
bool | isManagingThread () const |
Public Attributes | |
Context::EventListener * | eventListener |
an event listener More... | |
Private Attributes | |
ThreadIndex | optimalThreadCount |
optimal default number of worker threads per task in each pool More... | |
ThreadPool ** | threadPools |
thread pools of task workers More... | |
PoolIndex | numThreadPools |
ThreadPoolEventListener | threadPoolEventListener |
Context class implementation (pimpl)
Definition at line 43 of file context.cpp.
|
inline |
Definition at line 118 of file context.cpp.
|
inline |
Definition at line 130 of file context.cpp.
|
inline |
Definition at line 137 of file context.cpp.
|
inline |
Definition at line 148 of file context.cpp.
|
inline |
Definition at line 154 of file context.cpp.
|
inline |
Definition at line 160 of file context.cpp.
Definition at line 166 of file context.cpp.
Definition at line 172 of file context.cpp.
|
inline |
Definition at line 178 of file context.cpp.
|
inline |
Definition at line 184 of file context.cpp.
|
inline |
Definition at line 190 of file context.cpp.
|
inline |
Definition at line 195 of file context.cpp.
|
inline |
Definition at line 201 of file context.cpp.
|
inline |
Definition at line 207 of file context.cpp.
|
inline |
Definition at line 212 of file context.cpp.
|
inline |
Definition at line 217 of file context.cpp.
|
private |
optimal default number of worker threads per task in each pool
Definition at line 108 of file context.cpp.
|
private |
thread pools of task workers
Definition at line 110 of file context.cpp.
|
private |
Definition at line 111 of file context.cpp.
|
private |
Definition at line 112 of file context.cpp.
Context::EventListener* Beatmup::Context::Impl::eventListener |
an event listener
Definition at line 116 of file context.cpp.