| 400 | } |
| 401 | |
| 402 | bool StartHTTPServer(boost::thread_group& threadGroup) |
| 403 | { |
| 404 | LogPrint("http", "Starting HTTP server\n"); |
| 405 | int rpcThreads = std::max((long)GetArg("-rpcthreads", DEFAULT_HTTP_THREADS), 1L); |
| 406 | LogPrintf("HTTP: starting %d worker threads\n", rpcThreads); |
| 407 | threadGroup.create_thread(boost::bind(&ThreadHTTP, eventBase, eventHTTP)); |
| 408 | |
| 409 | for (int i = 0; i < rpcThreads; i++) |
| 410 | threadGroup.create_thread(boost::bind(&HTTPWorkQueueRun, workQueue)); |
| 411 | return true; |
| 412 | } |
| 413 | |
| 414 | void InterruptHTTPServer() |
| 415 | { |
no test coverage detected