MCPcopy Create free account
hub / github.com/ElementsProject/lightning / timers_set_allocator

Function timers_set_allocator

ccan/ccan/timer/timer.c:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25static void (*timer_free)(struct timers *, void *) = timer_default_free;
26
27void timers_set_allocator(void *(*alloc)(struct timers *, size_t len),
28 void (*free)(struct timers *, void *p))
29{
30 if (!alloc)
31 alloc = timer_default_alloc;
32 if (!free)
33 free = timer_default_free;
34 timer_alloc = alloc;
35 timer_free = free;
36}
37
38static uint64_t time_to_grains(struct timemono t)
39{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68