MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / HTTPRPCTimer

Method HTTPRPCTimer

src/httprpc.cpp:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20{
21public:
22 HTTPRPCTimer(struct event_base* eventBase, boost::function<void(void)>& func, int64_t millis) :
23 ev(eventBase, false, func)
24 {
25 struct timeval tv;
26 tv.tv_sec = millis/1000;
27 tv.tv_usec = (millis%1000)*1000;
28 ev.trigger(&tv);
29 }
30private:
31 HTTPEvent ev;
32};

Callers

nothing calls this directly

Calls 1

triggerMethod · 0.80

Tested by

no test coverage detected