| Flutter Impeller |

Public Member Functions | List of all members
impeller::PlaygroundImplGLES::ReactorWorker Class Referencefinal
Inheritance diagram for impeller::PlaygroundImplGLES::ReactorWorker:

## Public Member Functions
| ReactorWorker ()=default
bool | CanReactorReactOnCurrentThreadNow (const ReactorGLES &reactor) const override
void | SetReactionsAllowedOnCurrentThread (bool allowed)
Public Member Functions inherited from impeller::ReactorGLES::Worker
virtual | ~Worker ()=default

## Detailed Description

Definition at line 20 of file playground_impl_gles.cc.

## Constructor & Destructor Documentation

## ◆ ReactorWorker()

impeller::PlaygroundImplGLES::ReactorWorker::ReactorWorker | ( |  | ) |
| default

## Member Function Documentation

## ◆ CanReactorReactOnCurrentThreadNow()

bool impeller::PlaygroundImplGLES::ReactorWorker::CanReactorReactOnCurrentThreadNow | ( | const ReactorGLES & | reactor | ) | const
| inline override virtual

Implements impeller::ReactorGLES::Worker.

Definition at line 25 of file playground_impl_gles.cc.

26 {
27 ReaderLock lock(mutex_);
28 auto found = reactions_allowed_.find(std::this_thread::get_id());
29 if (found == reactions_allowed_.end()) {
30 return false;
31 }
32 return found->second;
33 }

## ◆ SetReactionsAllowedOnCurrentThread()

void impeller::PlaygroundImplGLES::ReactorWorker::SetReactionsAllowedOnCurrentThread | ( | bool | allowed | ) |
| inline

Definition at line 35 of file playground_impl_gles.cc.

35 {
36 WriterLock lock(mutex_);
37 reactions_allowed_[std::this_thread::get_id()] = allowed;
38 }

The documentation for this class was generated from the following file:

- impeller/playground/backend/gles/playground_impl_gles.cc