July 2007
Intermediate to advanced
332 pages
10h 4m
English
queuing_rw_mutex Class — Class that models ReaderWriterMutex Concept that is fair and scalable.
#include "tbb/queuing_rw_mutex.h" class queuing_rw_mutex;
A queuing_rw_mutex models the ReaderWriterMutex Concept. A queuing_rw_mutex is scalable, in the sense that if a task has to wait to acquire the mutex, it spins on its own local cache line. A queuing_rw_mutex is fair, in that tasks acquire the lock in the order they requested it, even if they later are suspended. A queuing_rw_mutex is not reentrant.
See Table 7-3.