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

Method internal_destroy

benchmarks/tbb/reader_writer_lock.cpp:86–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void reader_writer_lock::internal_destroy() {
87 __TBB_ASSERT(rdr_count_and_flags==0, "reader_writer_lock destroyed with pending readers/writers.");
88 __TBB_ASSERT(reader_head==NULL, "reader_writer_lock destroyed with pending readers.");
89 __TBB_ASSERT(writer_tail==NULL, "reader_writer_lock destroyed with pending writers.");
90 __TBB_ASSERT(writer_head==NULL, "reader_writer_lock destroyed with pending/active writers.");
91}
92
93// Acquires the reader_writer_lock for write. If the lock is currently held in write
94// mode by another context, the writer will block by spinning on a local variable.

Callers

nothing calls this directly

Calls 3

is_current_writerMethod · 0.80
end_writeMethod · 0.80
end_readMethod · 0.80

Tested by

no test coverage detected