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

Function StartHTTPServer

src/httpserver.cpp:424–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422static std::vector<std::thread> g_thread_http_workers;
423
424void StartHTTPServer()
425{
426 LogPrint(BCLog::HTTP, "Starting HTTP server\n");
427 int rpcThreads = std::max((long)gArgs.GetIntArg("-rpcthreads", DEFAULT_HTTP_THREADS), 1L);
428 LogPrintf("HTTP: starting %d worker threads\n", rpcThreads);
429 g_thread_http = std::thread(ThreadHTTP, eventBase);
430
431 for (int i = 0; i < rpcThreads; i++) {
432 g_thread_http_workers.emplace_back(HTTPWorkQueueRun, g_work_queue.get(), i);
433 }
434}
435
436void InterruptHTTPServer()
437{

Callers 1

AppInitServersFunction · 0.85

Calls 3

GetIntArgMethod · 0.80
emplace_backMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected