Definition at line 28 of file playground_impl_gles.cc.
◆ ReactorWorker()
impeller::PlaygroundImplGLES::ReactorWorker::ReactorWorker |
( |
| ) |
|
|
default |
◆ CanReactorReactOnCurrentThreadNow()
bool impeller::PlaygroundImplGLES::ReactorWorker::CanReactorReactOnCurrentThreadNow |
( |
const ReactorGLES & |
reactor | ) |
const |
|
inlineoverridevirtual |
Determines the ability of the worker to service a reaction on the current thread. The OpenGL context must be current on the thread if the worker says it is able to service a reaction.
- Parameters
-
- Returns
- If the worker is able to service a reaction. The reactor assumes the context is already current if true.
Implements impeller::ReactorGLES::Worker.
Definition at line 33 of file playground_impl_gles.cc.
34 {
35 ReaderLock lock(mutex_);
36 auto found = reactions_allowed_.find(std::this_thread::get_id());
37 if (found == reactions_allowed_.end()) {
38 return false;
39 }
40 return found->second;
41 }
◆ SetReactionsAllowedOnCurrentThread()
void impeller::PlaygroundImplGLES::ReactorWorker::SetReactionsAllowedOnCurrentThread |
( |
bool |
allowed | ) |
|
|
inline |
Definition at line 43 of file playground_impl_gles.cc.
43 {
44 WriterLock lock(mutex_);
45 reactions_allowed_[std::this_thread::get_id()] = allowed;
46 }
The documentation for this class was generated from the following file: