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

Method end_read

benchmarks/tbb/reader_writer_lock.cpp:286–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286void reader_writer_lock::end_read() {
287 ITT_NOTIFY(sync_releasing, this);
288 __TBB_ASSERT(rdr_count_and_flags >= RC_INCR, "unlock() called but no readers hold the lock.");
289 rdr_count_and_flags -= RC_INCR;
290}
291
292inline bool reader_writer_lock::is_current_writer() {
293 return my_current_writer==this_tbb_thread::get_id();

Callers 1

internal_destroyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected