An event listener (bunch of callbacks)
More...
#include <context.h>
An event listener (bunch of callbacks)
Definition at line 72 of file context.h.
◆ ~EventListener()
virtual Beatmup::Context::EventListener::~EventListener |
( |
| ) |
|
|
inlinevirtual |
◆ threadCreated()
virtual void Beatmup::Context::EventListener::threadCreated |
( |
PoolIndex |
pool | ) |
|
|
pure virtual |
◆ threadTerminating()
virtual void Beatmup::Context::EventListener::threadTerminating |
( |
PoolIndex |
pool | ) |
|
|
pure virtual |
◆ taskDone()
virtual bool Beatmup::Context::EventListener::taskDone |
( |
PoolIndex |
pool, |
|
|
AbstractTask & |
task, |
|
|
bool |
aborted |
|
) |
| |
|
pure virtual |
Called when a task is successfully finished.
- Parameters
-
[in] | pool | The thread pool the task was run in |
[in] | task | The task |
[in] | aborted | If true , the task was aborted from outside |
- Returns
true
if the task is asked to be executed again. Note that even if false
is returned, a repetition might be asked from outside.
Implemented in Beatmup::ContextEventListener.
◆ taskFail()
virtual void Beatmup::Context::EventListener::taskFail |
( |
PoolIndex |
pool, |
|
|
AbstractTask & |
task, |
|
|
const std::exception & |
ex |
|
) |
| |
|
pure virtual |
Called when a task fails.
- Parameters
-
[in] | pool | The thread pool the task was run in |
[in] | task | The task |
[in] | ex | Exception caught when the task is failed |
Implemented in Beatmup::ContextEventListener.
◆ gpuInitFail()
virtual void Beatmup::Context::EventListener::gpuInitFail |
( |
PoolIndex |
pool, |
|
|
const std::exception & |
ex |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: