MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / thread

Method thread

tests/relacy/relacy/example/stack/stack.cpp:88–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 }
87
88 void thread(unsigned /*index*/)
89 {
90 s_.push(rand() + 1);
91 produced_count_ += 1;
92 int data = s_.pop();
93 RL_ASSERT(data);
94 consumed_count_ += 1;
95 }
96};
97
98

Callers

nothing calls this directly

Calls 3

randFunction · 0.85
pushMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected