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

Method run

lib_acl_cpp/samples/tbox2/tbox.cpp:39–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38protected:
39 void* run(void)
40 {
41 for (int i = 0; i < max_; i++) {
42 TBOX<int> box;
43 acl::thread_job* job = new producer(box);
44 threads_.execute(job);
45 int* n = box.pop();
46 delete n;
47 }
48
49 printf("consumer-%ld finish\r\n", acl::thread::self());
50 return NULL;
51 }
52
53private:
54 acl::thread_pool& threads_;

Callers

nothing calls this directly

Calls 3

selfFunction · 0.50
executeMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected