MCPcopy Create free account
hub / github.com/DeNA/HandlerSocket-Plugin-for-MySQL / run

Method run

handlersocket/hstcpsvr_worker.cpp:323–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}; // namespace
322
323void
324hstcpsvr_worker::run()
325{
326 thr_init initobj(dbctx, vshared.shutdown);
327
328 #ifdef __linux__
329 if (cshared.sockargs.use_epoll) {
330 while (!vshared.shutdown && dbctx->check_alive()) {
331 run_one_ep();
332 }
333 } else if (cshared.sockargs.nonblocking) {
334 while (!vshared.shutdown && dbctx->check_alive()) {
335 run_one_nb();
336 }
337 } else {
338 /* UNUSED */
339 fatal_abort("run_one");
340 }
341 #else
342 while (!vshared.shutdown && dbctx->check_alive()) {
343 run_one_nb();
344 }
345 #endif
346}
347
348int
349hstcpsvr_worker::run_one_nb()

Callers 1

operator ()Method · 0.45

Calls 2

fatal_abortFunction · 0.85
check_aliveMethod · 0.80

Tested by

no test coverage detected