| 1111 | } |
| 1112 | |
| 1113 | void 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected