00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __TBB_null_rw_mutex_H
00022 #define __TBB_null_rw_mutex_H
00023
00024 namespace tbb {
00025
00027
00029 class null_rw_mutex {
00031 null_rw_mutex( const null_rw_mutex& );
00032 void operator=( const null_rw_mutex& );
00033 public:
00035 class scoped_lock {
00036 public:
00037 scoped_lock() {}
00038 scoped_lock( null_rw_mutex& , bool = true ) {}
00039 ~scoped_lock() {}
00040 void acquire( null_rw_mutex& , bool = true ) {}
00041 bool upgrade_to_writer() { return true; }
00042 bool downgrade_to_reader() { return true; }
00043 bool try_acquire( null_rw_mutex& , bool = true ) { return true; }
00044 void release() {}
00045 };
00046
00047 null_rw_mutex() {}
00048
00049
00050 static const bool is_rw_mutex = true;
00051 static const bool is_recursive_mutex = true;
00052 static const bool is_fair_mutex = true;
00053 };
00054
00055 }
00056
00057 #endif