00001 #ifndef DO_MUTEX_H 00002 #define DO_MUTEX_H 00003 00004 #include "DoBaseI.h" 00005 #include "pi/Thread.h" 00006 00007 class MutexC : public MutexI { 00008 public: 00009 PI_MUTEX_HANDLE m_mh; 00010 int m_cnt; 00011 MutexC(); 00012 ~MutexC(); 00013 00014 virtual bool docall Lock(); 00015 virtual bool docall Unlock(); 00016 00017 virtual bool docall TryLock(); 00018 00019 bool docall IsOk(); 00020 }; 00021 00022 #endif // DO_MUTEX_H 00023