| 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."); |
| 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. |
nothing calls this directly
no test coverage detected