Beispiel #1
0
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);
}
Beispiel #2
0
inline bool posix_named_mutex::try_lock()
{  return m_sem.try_wait();  }
Beispiel #3
0
inline void posix_named_mutex::lock()
{  m_sem.wait();  }
Beispiel #4
0
inline void posix_named_mutex::unlock()
{  m_sem.post();  }
Beispiel #5
0
inline bool posix_named_mutex::timed_lock(const boost::posix_time::ptime &abs_time)
{  return m_sem.timed_wait(abs_time);  }