//////////////////////////////////////////////////////////////////////////// // CMutex クラスのインタフェース宣言 // //////////////////////////////////////////////////////////////////////////// #if !defined( MUTEX_H_INCLUDED_ ) #define MUTEX_H_INCLUDED_ #include class CMutex { public: CMutex(); ~CMutex(); // 初期化 bool Initialize(); // 破棄 bool Destroy(); // 占有する bool Lock(); // 占有を試みる bool TryLock(); // 解放する bool Unlock(); protected: pthread_mutex_t mutex; }; #endif // MUTEX_H_INCLUDED_