21 #ifndef __TBB_null_rw_mutex_H 22 #define __TBB_null_rw_mutex_H 24 #include "tbb_stddef.h" 40 bool upgrade_to_writer() {
return true; }
41 bool downgrade_to_reader() {
return true; }
42 bool try_acquire(
null_rw_mutex& ,
bool =
true ) {
return true; }
49 static const bool is_rw_mutex =
true;
50 static const bool is_recursive_mutex =
true;
51 static const bool is_fair_mutex =
true;
A rw mutex which does nothing.
Definition: null_rw_mutex.h:31
The namespace tbb contains all components of the library.
Definition: parallel_for.h:44
Represents acquisition of a mutex.
Definition: null_rw_mutex.h:34