コード例 #1
0
ファイル: named_mutex.hpp プロジェクト: gijs/hexer
inline bool posix_named_mutex::timed_lock(const hexerboost::posix_time::ptime &abs_time)
{
   if(abs_time == hexerboost::posix_time::pos_infin){
      this->lock();
      return true;
   }
   return m_sem.timed_wait(abs_time);
}
コード例 #2
0
ファイル: named_mutex.hpp プロジェクト: gijs/hexer
inline bool posix_named_mutex::try_lock()
{  return m_sem.try_wait();  }
コード例 #3
0
ファイル: named_mutex.hpp プロジェクト: gijs/hexer
inline void posix_named_mutex::lock()
{  m_sem.wait();  }
コード例 #4
0
ファイル: named_mutex.hpp プロジェクト: gijs/hexer
inline void posix_named_mutex::unlock()
{  m_sem.post();  }
コード例 #5
0
ファイル: named_mutex.hpp プロジェクト: 13W/icq-desktop
inline bool posix_named_mutex::timed_lock(const boost::posix_time::ptime &abs_time)
{  return m_sem.timed_wait(abs_time);  }