#include <editor_control_queue.h>
Classes | |
| struct | Request |
Public Member Functions | |
| absl::StatusOr< std::string > | Submit (std::string json, std::chrono::milliseconds queue_timeout=std::chrono::seconds(5)) |
| void | ProcessOne (const std::function< std::string(const std::string &)> &action) |
| bool | pending () const |
Private Attributes | |
| std::mutex | mutex_ |
| std::queue< std::shared_ptr< Request > > | requests_ |
Definition at line 20 of file editor_control_queue.h.
|
inline |
Definition at line 22 of file editor_control_queue.h.
References mutex_, and requests_.
Referenced by yaze::Controller::RequestEditorControl().
|
inline |
Definition at line 46 of file editor_control_queue.h.
References mutex_, and requests_.
Referenced by yaze::Controller::OnLoad().
|
inline |
Definition at line 68 of file editor_control_queue.h.
References mutex_, and requests_.
Referenced by yaze::Controller::OnInput().
|
mutableprivate |
Definition at line 80 of file editor_control_queue.h.
Referenced by pending(), ProcessOne(), and Submit().
|
private |
Definition at line 81 of file editor_control_queue.h.
Referenced by pending(), ProcessOne(), and Submit().