| 422 | static std::vector<std::thread> g_thread_http_workers; |
| 423 | |
| 424 | void 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 | |
| 436 | void InterruptHTTPServer() |
| 437 | { |
no test coverage detected