MCPcopy Create free account
hub / github.com/bitcoin-sv/bitcoin-sv / trigger

Method trigger

src/httpserver.cpp:459–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457 event_free(ev);
458}
459void HTTPEvent::trigger(struct timeval *tv) {
460 if (tv == nullptr) {
461 // Immediately trigger event in main thread.
462 event_active(ev, 0, 0);
463 } else {
464 // Trigger after timeval passed.
465 evtimer_add(ev, tv);
466 }
467}
468
469HTTPRequest::HTTPRequest(struct evhttp_request *_req)
470 : req(_req)

Callers 5

WriteReplyMethod · 0.80
StartWritingChunksMethod · 0.80
WriteReplyChunkMethod · 0.80
StopWritingChunksMethod · 0.80
HTTPRPCTimerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected