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