Simple wrapper to set thread name and run work queue */
| 338 | |
| 339 | /** Simple wrapper to set thread name and run work queue */ |
| 340 | static void HTTPWorkQueueRun(WorkQueue<HTTPClosure>* queue, int worker_num) |
| 341 | { |
| 342 | util::ThreadRename(strprintf("httpworker.%i", worker_num)); |
| 343 | SetSyscallSandboxPolicy(SyscallSandboxPolicy::NET_HTTP_SERVER_WORKER); |
| 344 | queue->Run(); |
| 345 | } |
| 346 | |
| 347 | /** libevent event log callback */ |
| 348 | static void libevent_log_cb(int severity, const char *msg) |
nothing calls this directly
no test coverage detected