Event dispatcher thread */
| 300 | |
| 301 | /** Event dispatcher thread */ |
| 302 | static bool ThreadHTTP(struct event_base* base) { |
| 303 | RenameThread("coin-http"); |
| 304 | LogPrint(BCLog::RPC, "Entering http event loop\n"); |
| 305 | event_base_dispatch(base); |
| 306 | // Event loop will be interrupted by InterruptHTTPServer() |
| 307 | LogPrint(BCLog::RPC, "Exited http event loop\n"); |
| 308 | return event_base_got_break(base) == 0; |
| 309 | } |
| 310 | |
| 311 | /** Bind HTTP server to specified addresses */ |
| 312 | static bool HTTPBindAddresses(struct evhttp* http) { |
nothing calls this directly
no test coverage detected