| 73 | |
| 74 | |
| 75 | void 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 | |
| 86 | void reader_writer_lock::internal_destroy() { |
| 87 | __TBB_ASSERT(rdr_count_and_flags==0, "reader_writer_lock destroyed with pending readers/writers."); |
nothing calls this directly
no test coverage detected