26#ifndef ROUTER_SRC_MYSQL_REST_SERVICE_SRC_HELPER_TASK_CONTROL_H_ 
   27#define ROUTER_SRC_MYSQL_REST_SERVICE_SRC_HELPER_TASK_CONTROL_H_ 
   47  template <
typename... Args>
 
   68      bool was_running{
false};
 
   73          log_debug(
"TaskControl::start - reset()");
 
   79          log_debug(
"TaskControl::start - start()");
 
   92    if (state_.exchange({k_stateInitialize, k_stateRunning, k_stateSuspended},
 
Definition: wait_variable.h:34
 
Definition: task_control.h:45
 
void task_resume()
Definition: task_control.h:57
 
void stop() override
Definition: task_control.h:91
 
TaskControl(Args &&...args)
Definition: task_control.h:48
 
void start() override
Definition: task_control.h:64
 
void task_suspend()
Definition: task_control.h:50
 
Log log_debug(std::cout, "DEBUG")
 
static void start(mysql_harness::PluginFuncEnv *env)
Definition: http_auth_backend_plugin.cc:180
 
#define T
Definition: jit_executor_value.cc:373
 
Logging interface for using and extending the logging subsystem.
 
#define IMPORT_LOG_FUNCTIONS()
convenience macro to avoid common boilerplate
Definition: logging.h:331
 
static void stop(mysql_harness::PluginFuncEnv *)
Definition: mysql_rest_service_plugin.cc:397
 
std::string HARNESS_EXPORT reset()
get 'reset attributes' ESC sequence.
Definition: vt100.cc:37
 
State
Definition: task_control.h:37
 
@ k_stateInitialize
Definition: task_control.h:38
 
@ k_stateRunning
Definition: task_control.h:39
 
@ k_stateStopped
Definition: task_control.h:41
 
@ k_stateSuspended
Definition: task_control.h:40
 
Definition: gcs_xcom_synode.h:64