首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

BasicLockable

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

所需

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

Expression

Requires

Effects

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
代码语言:txt
复制
 ? cppreference.com

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

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com