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

Function ThreadHTTP

src/rpc/core/httpserver.cpp:302–309  ·  view source on GitHub ↗

Event dispatcher thread */

Source from the content-addressed store, hash-verified

300
301/** Event dispatcher thread */
302static 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 */
312static bool HTTPBindAddresses(struct evhttp* http) {

Callers

nothing calls this directly

Calls 1

RenameThreadFunction · 0.85

Tested by

no test coverage detected