Event dispatcher thread */
| 284 | |
| 285 | /** Event dispatcher thread */ |
| 286 | static bool ThreadHTTP(struct event_base* base) |
| 287 | { |
| 288 | RenameThread("bitcoin-http"); |
| 289 | LogPrint(BCLog::HTTP, "Entering http event loop\n"); |
| 290 | event_base_dispatch(base); |
| 291 | // Event loop will be interrupted by InterruptHTTPServer() |
| 292 | LogPrint(BCLog::HTTP, "Exited http event loop\n"); |
| 293 | return event_base_got_break(base) == 0; |
| 294 | } |
| 295 | |
| 296 | /** Bind HTTP server to specified addresses */ |
| 297 | static bool HTTPBindAddresses(struct evhttp* http) |
nothing calls this directly
no test coverage detected