本文整理汇总了C++中impl_t类的典型用法代码示例。如果您正苦于以下问题:C++ impl_t类的具体用法?C++ impl_t怎么用?C++ impl_t使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了impl_t类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: timed_wait
inline bool named_semaphore::timed_wait(const boost::posix_time::ptime &abs_time)
{
if(abs_time == boost::posix_time::pos_infin){
this->wait();
return true;
}
return m_sem.timed_wait(abs_time);
}
示例2: timed_lock
inline bool named_recursive_mutex::timed_lock(const boost::posix_time::ptime &abs_time)
{
if(abs_time == boost::posix_time::pos_infin){
this->lock();
return true;
}
return m_mut.timed_lock(abs_time);
}
示例3: timed_lock
inline bool named_recursive_mutex::timed_lock(const boost::posix_time::ptime &abs_time)
{
return m_mut.timed_lock(abs_time);
}
示例4: try_lock
inline bool named_recursive_mutex::try_lock()
{
return m_mut.try_lock();
}
示例5: unlock
inline void named_recursive_mutex::unlock()
{
m_mut.unlock();
}
示例6: try_wait
inline bool named_semaphore::try_wait()
{ return m_sem.try_wait(); }
示例7: post
inline void named_semaphore::post()
{ m_sem.post(); }
示例8: wait
inline void named_semaphore::wait()
{ m_sem.wait(); }
示例9: try_lock
inline bool named_mutex::try_lock()
{ return m_mut.try_lock(); }
示例10: unlock
inline void named_mutex::unlock()
{ m_mut.unlock(); }
示例11: lock
inline void named_mutex::lock()
{ m_mut.lock(); }
示例12:
interprocess_mutex *mutex() const
{ return m_mut.mutex(); }
示例13: timed_wait
inline bool named_semaphore::timed_wait(const boost::posix_time::ptime &abs_time)
{ return m_sem.timed_wait(abs_time); }