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

Function main

lib_acl_cpp/samples/box/box.cpp:30–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28};
29
30int main(void)
31{
32 int max = 50000000;
33 BOX<int> box;
34
35 producer thr(box, max);
36 thr.start();
37
38 for (int i = 0; i < max; i++) {
39 int* n = box.pop();
40 assert(*n == i);
41 delete n;
42 }
43
44 printf("All over, max=%d\r\n", max);
45 thr.wait();
46 return 0;
47}

Callers

nothing calls this directly

Calls 3

startMethod · 0.45
popMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…