File indexing completed on 2025-01-18 10:12:57
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef __TBB_null_rw_mutex_H
0018 #define __TBB_null_rw_mutex_H
0019
0020 #include "tbb_stddef.h"
0021
0022 namespace tbb {
0023
0024
0025
0026
0027 class null_rw_mutex : internal::mutex_copy_deprecated_and_disabled {
0028 public:
0029
0030 class scoped_lock : internal::no_copy {
0031 public:
0032 scoped_lock() {}
0033 scoped_lock( null_rw_mutex& , bool = true ) {}
0034 ~scoped_lock() {}
0035 void acquire( null_rw_mutex& , bool = true ) {}
0036 bool upgrade_to_writer() { return true; }
0037 bool downgrade_to_reader() { return true; }
0038 bool try_acquire( null_rw_mutex& , bool = true ) { return true; }
0039 void release() {}
0040 };
0041
0042 null_rw_mutex() {}
0043
0044
0045 static const bool is_rw_mutex = true;
0046 static const bool is_recursive_mutex = true;
0047 static const bool is_fair_mutex = true;
0048 };
0049
0050 }
0051
0052 #endif