| 321 | }; // namespace |
| 322 | |
| 323 | void |
| 324 | hstcpsvr_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 | |
| 348 | int |
| 349 | hstcpsvr_worker::run_one_nb() |
no test coverage detected