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

Method thread

tests/relacy/integrated.cpp:464–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462 }
463
464 void thread(unsigned int tid)
465 {
466 RelacyThreadExitNotifier::notify_relacy_thread_start();
467
468 for (int i = 0; i != 7; ++i) {
469 q.enqueue(tid * 7 + i);
470 }
471
472 int item;
473 ConsumerToken t(q);
474 for (int i = 0; i != 7; ++i) {
475 if (q.try_dequeue(t, item)) {
476 RL_ASSERT(!seen[item]);
477 seen[item] = true;
478 }
479 }
480
481 RelacyThreadExitNotifier::notify_relacy_thread_exit();
482 }
483
484 void after()
485 {

Callers

nothing calls this directly

Calls 2

enqueueMethod · 0.45
try_dequeueMethod · 0.45

Tested by

no test coverage detected