在线文档教程

TimedLockable

C++概念:TimedLocable

TimedLockable概念描述了为执行代理%28i.e提供时间排他性阻塞语义的类型的特征。线程%29。

所需

类型L成为TimedLockable,必须满足对象的下列条件m类型L*

ExpressionRequiresEffects
m.try_lock_for(duration)Blocks for the provided duration the resource m.
m.try_lock_until(time_limit)Blocks the resource m until the provided time limit point is reached.

另见

  • 线程支持库

  • TimedMutex

  • Lockable

  • BasicLockable

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/概念性/TimedLocable