MCPcopy Create free account
hub / github.com/3rdparty/libprocess / handle_delay

Function handle_delay

src/posix/libev/libev.cpp:107–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105namespace internal {
106
107void handle_delay(struct ev_loop* loop, ev_timer* timer, int revents)
108{
109 lambda::function<void()>* function =
110 reinterpret_cast<lambda::function<void()>*>(timer->data);
111 (*function)();
112 delete function;
113 ev_timer_stop(loop, timer);
114 delete timer;
115}
116
117
118Future<Nothing> delay(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected