MCPcopy Create free account
hub / github.com/78/tenbox / EventLoopThread

Method EventLoopThread

src/runtime/runtime_service.cpp:1113–1133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1111}
1112
1113void RuntimeControlService::EventLoopThread() {
1114 uv_loop_init(&loop_);
1115
1116 pipe_.data = this;
1117 uv_pipe_init(&loop_, &pipe_, 0);
1118
1119 send_wakeup_.data = this;
1120 uv_async_init(&loop_, &send_wakeup_, OnSendWakeup);
1121
1122 stop_wakeup_.data = this;
1123 uv_async_init(&loop_, &stop_wakeup_, OnStopSignal);
1124
1125 console_coalesce_timer_.data = this;
1126 uv_timer_init(&loop_, &console_coalesce_timer_);
1127
1128 connect_req_.data = this;
1129 uv_pipe_connect(&connect_req_, &pipe_, pipe_name_.c_str(), OnPipeConnect);
1130
1131 uv_run(&loop_, UV_RUN_DEFAULT);
1132 uv_loop_close(&loop_);
1133}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected