MCPcopy Create free account
hub / github.com/LUX-Core/lux / ThreadHTTP

Function ThreadHTTP

src/httpserver.cpp:282–290  ·  view source on GitHub ↗

Event dispatcher thread */

Source from the content-addressed store, hash-verified

280}
281/** Event dispatcher thread */
282static bool ThreadHTTP(struct event_base* base)
283{
284 RenameThread("bitcoin-http");
285 LogPrint("http", "Entering http event loop\n");
286 event_base_dispatch(base);
287 // Event loop will be interrupted by InterruptHTTPServer()
288 LogPrint("http", "Exited http event loop\n");
289 return event_base_got_break(base) == 0;
290}
291
292/** Bind HTTP server to specified addresses */
293static bool HTTPBindAddresses(struct evhttp* http)

Callers

nothing calls this directly

Calls 2

RenameThreadFunction · 0.85
LogPrintFunction · 0.85

Tested by

no test coverage detected