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

Function consumer_thread

tests/CDSChecker/enqueue_dequeue_one.cpp:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13void consumer_thread(void*)
14{
15 int element;
16 bool result = try_dequeue(element);
17 MODEL_ASSERT(!result || element == 1234);
18
19 if (result) {
20 MODEL_ASSERT(!try_dequeue(element));
21 }
22}
23
24int user_main(int, char**)
25{

Callers

nothing calls this directly

Calls 1

try_dequeueFunction · 0.85

Tested by

no test coverage detected