MCPcopy Create free account
hub / github.com/MariaDB/server / run

Method run

plugin/handler_socket/handlersocket/hstcpsvr_worker.cpp:324–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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