TimedLockable
C++概念:TimedLocable
大TimedLockable
概念描述了为执行代理%28i.e提供时间排他性阻塞语义的类型的特征。线程%29。
所需
类型L
成为TimedLockable
,必须满足对象的下列条件m
类型L
*
Expression | Requires | Effects |
---|---|---|
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。