MCPcopy Create free account
hub / github.com/ElementsProject/elements / HTTPWorkQueueRun

Function HTTPWorkQueueRun

src/httpserver.cpp:340–345  ·  view source on GitHub ↗

Simple wrapper to set thread name and run work queue */

Source from the content-addressed store, hash-verified

338
339/** Simple wrapper to set thread name and run work queue */
340static 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 */
348static void libevent_log_cb(int severity, const char *msg)

Callers

nothing calls this directly

Calls 2

SetSyscallSandboxPolicyFunction · 0.85
RunMethod · 0.45

Tested by

no test coverage detected