|
Beatmup
|
Needed for correct functioning of JNI. More...
#include <context_event_listener.h>
Public Member Functions | |
| ContextEventListener (JNIEnv *jenv) | |
| void | threadCreated (PoolIndex pool) |
| Called when a new worker thread is created. More... | |
| void | threadTerminating (PoolIndex pool) |
| Called when a worker thread finished. More... | |
| void | taskFail (PoolIndex pool, Beatmup::AbstractTask &task, const std::exception &ex) |
| Called when a task fails. More... | |
| void | gpuInitFail (PoolIndex pool, const std::exception &ex) |
| Called when GPU initialization failed. More... | |
| bool | taskDone (PoolIndex pool, Beatmup::AbstractTask &task, bool aborted) |
| Called when a task is successfully finished. More... | |
Public Member Functions inherited from Beatmup::Context::EventListener | |
| virtual | ~EventListener () |
Private Attributes | |
| JavaVM * | jvm |
Needed for correct functioning of JNI.
Definition at line 27 of file context_event_listener.h.
| ContextEventListener::ContextEventListener | ( | JNIEnv * | jenv | ) |
Definition at line 25 of file context_event_listener.cpp.
|
virtual |
Called when a new worker thread is created.
Implements Beatmup::Context::EventListener.
Definition at line 30 of file context_event_listener.cpp.
|
virtual |
Called when a worker thread finished.
Implements Beatmup::Context::EventListener.
Definition at line 35 of file context_event_listener.cpp.
|
virtual |
Called when a task fails.
| [in] | pool | The thread pool the task was run in |
| [in] | task | The task |
| [in] | ex | Exception caught when the task is failed |
Implements Beatmup::Context::EventListener.
Definition at line 41 of file context_event_listener.cpp.
|
virtual |
Called when GPU initialization failed.
| [in] | pool | The thread pool the failure occurred in |
| [in] | ex | Exception caught |
Implements Beatmup::Context::EventListener.
Definition at line 46 of file context_event_listener.cpp.
|
virtual |
Called when a task is successfully finished.
| [in] | pool | The thread pool the task was run in |
| [in] | task | The task |
| [in] | aborted | If true, the task was aborted from outside |
true if the task is asked to be executed again. Note that even if false is returned, a repetition might be asked from outside. Implements Beatmup::Context::EventListener.
Definition at line 51 of file context_event_listener.cpp.
|
private |
Definition at line 29 of file context_event_listener.h.