|
Beatmup
|
Event listener class. More...
#include <thread_pool.hpp>
Public Member Functions | |
| virtual void | threadCreated (PoolIndex pool) |
| Callback function called when a new worker thread is created. More... | |
| virtual void | threadTerminating (PoolIndex pool) |
| Callback function called when a worker thread is terminating. More... | |
| virtual bool | taskDone (PoolIndex pool, AbstractTask &task, bool aborted) |
Callback function called when a task is done or cancelled; if returns true, the task will be repeated. More... | |
| virtual void | taskFail (PoolIndex pool, AbstractTask &task, const std::exception_ptr exPtr) |
| Callback function called when an exception is thrown. More... | |
| virtual void | gpuInitFail (PoolIndex pool, const std::exception_ptr exPtr) |
| Callback function called when the GPU cannot start. More... | |
Event listener class.
Definition at line 86 of file thread_pool.hpp.
|
inlinevirtual |
Callback function called when a new worker thread is created.
| pool | Thread pool number in the context |
Reimplemented in Beatmup::Context::Impl::ThreadPoolEventListener.
Definition at line 92 of file thread_pool.hpp.
|
inlinevirtual |
Callback function called when a worker thread is terminating.
| pool | Thread pool number in the context |
Reimplemented in Beatmup::Context::Impl::ThreadPoolEventListener.
Definition at line 98 of file thread_pool.hpp.
|
inlinevirtual |
Callback function called when a task is done or cancelled; if returns true, the task will be repeated.
| pool | Thread pool number in the context |
| task | The task |
| aborted | If true, the task was aborted |
Reimplemented in Beatmup::Context::Impl::ThreadPoolEventListener.
Definition at line 106 of file thread_pool.hpp.
|
inlinevirtual |
Callback function called when an exception is thrown.
| pool | Thread pool number in the context |
| task | The task that was running when the exception was thrown |
| exPtr | Exception pointer |
Reimplemented in Beatmup::Context::Impl::ThreadPoolEventListener.
Definition at line 116 of file thread_pool.hpp.
|
inlinevirtual |
Callback function called when the GPU cannot start.
| pool | Thread pool number in the context |
| exPtr | Exception pointer; points to the exception instance occurred when starting up the GPU |
Reimplemented in Beatmup::Context::Impl::ThreadPoolEventListener.
Definition at line 123 of file thread_pool.hpp.