在线文档教程

BasicLockable

C++概念:BasicLocable

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

所需

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

ExpressionRequiresEffects
m.lock()Blocks until a lock can be obtained for the current execution agent. If an exception is thrown, no lock is obtained.
m.unlock()The current execution agent should hold the lock m.Releases the lock held by the execution agent. Throws no exceptions.

另见

  • 线程支持库

  • Mutex

  • Lockable

  • TimedLockable

© cppreference.com

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

http://en.cppreference.com/w/cpp/Concept/BasicLocable