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
00026 class null_rw_mutex {
00028 null_rw_mutex( const null_rw_mutex& );
00029 void operator=( const null_rw_mutex& );
00030 public:
00031 class scoped_lock {
00032 public:
00033 scoped_lock() {}
00034 scoped_lock( null_rw_mutex& , bool = true ) {}
00035 ~scoped_lock() {}
00036 void acquire( null_rw_mutex& , bool = true ) {}
00037 bool upgrade_to_writer() { return true; }
00038 bool downgrade_to_reader() { return true; }
00039 bool try_acquire( null_rw_mutex& , bool = true ) { return true; }
00040 void release() {}
00041 };
00042
00043 null_rw_mutex() {}
00044
00045
00046 static const bool is_rw_mutex = true;
00047 static const bool is_recursive_mutex = true;
00048 static const bool is_fair_mutex = true;
00049 };
00050
00051 }
00052
00053 #endif