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

Function write_loop

ccan/ccan/io/benchmarks/run-stream-many.c:41–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41static struct io_plan *write_loop(struct io_conn *conn, ptrint_t *iter)
42{
43 ptrdiff_t n = ptr2int(iter);
44
45 if (n > write_iterations) {
46 --num_writers;
47 if (num_writers == 0)
48 finished();
49 return io_wait(conn, conn, io_never, NULL);
50 }
51 return io_write(conn, writebuf, sizeof(writebuf), write_loop, int2ptr(n + 1));
52}
53
54static struct io_plan *read_loop(struct io_conn *conn, void *unused)
55{

Callers 1

connection_inFunction · 0.85

Calls 3

ptr2intFunction · 0.85
int2ptrFunction · 0.85
finishedFunction · 0.70

Tested by

no test coverage detected