MCPcopy Index your code
hub / github.com/ElementsProject/lightning / new_abstimer_

Function new_abstimer_

common/timeout.c:34–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34struct oneshot *new_abstimer_(struct timers *timers,
35 const tal_t *ctx,
36 struct timemono expiry,
37 void (*cb)(void *), void *arg)
38{
39 struct oneshot *t = tal(ctx, struct oneshot);
40
41 t->cb = cb;
42 t->arg = arg;
43 t->timers = timers;
44 timer_init(&t->timer);
45 timer_addmono(timers, &t->timer, expiry);
46 tal_add_destructor(t, destroy_timer);
47
48 return t;
49}
50
51void *oneshot_arg(struct oneshot *t)
52{

Callers

nothing calls this directly

Calls 2

timer_initFunction · 0.85
timer_addmonoFunction · 0.85

Tested by

no test coverage detected