00001 00024 #ifndef GALOIS_RUNTIME_METHODFLAGS_H 00025 #define GALOIS_RUNTIME_METHODFLAGS_H 00026 00027 #include "Galois/config.h" 00028 #include "Galois/MethodFlags.h" 00029 00030 namespace Galois { 00031 namespace Runtime { 00032 00033 void doCheckWrite(); 00034 00035 inline bool isWriteMethod(Galois::MethodFlag m, bool write) { 00036 return write || (m & MethodFlag::WRITE) != Galois::MethodFlag::NONE; 00037 } 00038 00039 inline void checkWrite(Galois::MethodFlag m, bool write) { 00040 #ifndef GALOIS_USE_HTM 00041 if (isWriteMethod(m, write)) 00042 doCheckWrite(); 00043 #endif 00044 } 00045 00046 } 00047 } // end namespace Galois 00048 00049 #endif //GALOIS_RUNTIME_METHODFLAGS_H