|
Gin
|
Passed to async commands so they can hop onto the message thread and pause between steps. More...
#include <gin_remoteserver.h>
Public Member Functions | |
| Context (RemoteServer &s) | |
| CommandResult | runOnMessageThread (std::function< CommandResult()> fn) |
| Runs a function on the message thread and waits for it, honouring Options::messageThreadTimeoutMs. | |
| bool | sleep (int ms) |
| Sleeps on the server thread. | |
Public Attributes | |
| RemoteServer & | server |
Passed to async commands so they can hop onto the message thread and pause between steps.
| RemoteServer::Context::Context | ( | RemoteServer & | s | ) |
| CommandResult RemoteServer::Context::runOnMessageThread | ( | std::function< CommandResult()> | fn | ) |
Runs a function on the message thread and waits for it, honouring Options::messageThreadTimeoutMs.
References server.
| RemoteServer& RemoteServer::Context::server |
Referenced by runOnMessageThread(), and sleep().