MCPcopy Create free account
hub / github.com/acl-dev/acl / test

Function test

lib_fiber/samples-c++/thread_event/main.cpp:65–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63#include <sys/eventfd.h>
64
65static void test(void)
66{
67 int fd = eventfd(0, 0);
68 long long n = 100;
69 if (write(fd, &n, sizeof(n)) == -1) {}
70 if (read(fd, &n, sizeof(n)) <= 0) {}
71 printf("n=%lld\r\n", n);
72}
73
74int main(int argc, char *argv[])
75{

Callers 1

mainFunction · 0.70

Calls 2

writeFunction · 0.50
readFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…