MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / HTTPRPCTimer

Method HTTPRPCTimer

src/httprpc.cpp:41–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39class HTTPRPCTimer : public RPCTimerBase {
40public:
41 HTTPRPCTimer(struct event_base *eventBase, std::function<void()> &func,
42 int64_t millis)
43 : ev(eventBase, false, func) {
44 struct timeval tv;
45 tv.tv_sec = millis / 1000;
46 tv.tv_usec = (millis % 1000) * 1000;
47 ev.trigger(&tv);
48 }
49
50private:
51 HTTPEvent ev;

Callers

nothing calls this directly

Calls 1

triggerMethod · 0.80

Tested by

no test coverage detected