MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / ThreadHTTP

Function ThreadHTTP

src/httpserver.cpp:286–294  ·  view source on GitHub ↗

Event dispatcher thread */

Source from the content-addressed store, hash-verified

284
285/** Event dispatcher thread */
286static 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 */
297static bool HTTPBindAddresses(struct evhttp* http)

Callers

nothing calls this directly

Calls 1

RenameThreadFunction · 0.85

Tested by

no test coverage detected