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

Method internal_construct

benchmarks/tbb/reader_writer_lock.cpp:75–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74
75void reader_writer_lock::internal_construct() {
76 reader_head = NULL;
77 writer_head = NULL;
78 writer_tail = NULL;
79 rdr_count_and_flags = 0;
80 my_current_writer = tbb_thread::id();
81#if TBB_USE_THREADING_TOOLS
82 ITT_SYNC_CREATE(this, _T("tbb::reader_writer_lock"), _T(""));
83#endif /* TBB_USE_THREADING_TOOLS */
84}
85
86void reader_writer_lock::internal_destroy() {
87 __TBB_ASSERT(rdr_count_and_flags==0, "reader_writer_lock destroyed with pending readers/writers.");

Callers

nothing calls this directly

Calls 5

idClass · 0.85
is_current_writerMethod · 0.80
start_writeMethod · 0.80
start_readMethod · 0.80
throw_exceptionFunction · 0.70

Tested by

no test coverage detected