| 284 | } |
| 285 | |
| 286 | void 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 | |
| 292 | inline bool reader_writer_lock::is_current_writer() { |
| 293 | return my_current_writer==this_tbb_thread::get_id(); |