登录
首页 » c++ » boost shared_mutex

boost shared_mutex

于 2022-03-25 发布 文件大小:3.43 kB
0 122
下载积分: 2 下载次数: 1

代码说明:

共享资源库.今天介绍的共享互斥量用来实现缓冲区读写模型,与生产者/消费者模型不同的地方是,消费者消费产品后,被消费的产品就不存在了,所以消费者线程也要互斥运行;而缓冲区读取线程读取数据后不删除数据,多个线程可以并行读取。这时使用条件变量也不合适了,就要使用共享互斥变量了。        共享互斥量,顾名思义,既共享,也互斥,读线程之间共享读取数据,使用shared_lock类锁定shared_mutex变量;写线程之间需要独占缓冲区,必须互斥运行,使用unique_lock类锁定shared_mutex变量

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 2D_Heat_Conduction
    Matlab code soving 2D heat conduction using FEA
    2013-03-04 09:14:56下载
    积分:1
  • stm32 触摸屏实验
    说明:  基于stm32固件库的触摸屏实现,可用手指触摸屏幕,类似于手机的功能(Touch screen based on STM32 firmware library can be touched by fingers, similar to the function of mobile phone)
    2020-06-16 00:00:07下载
    积分:1
  • Infrared-obstacle-avoidance-program
    51单片机,应用在小车中的一个红外壁障程序。带有完整工程(Infrared obstacle avoidance program)
    2016-08-11 15:03:33下载
    积分:1
  • ImageProcess
    c#写的图像处理程序框架,包括打开图片、保存、关闭等功能。图像处理包括图像增强里用到的灰度化、亮度增强、线性非线性平滑、一阶二阶锐化等。(c# write image-processing program framework, including open images, save, close and other functions. Image processing including image enhancement is used inside the gray-oriented, brightness increased, the linear non-linear smoothing, sharpening and so on a first-order second-order.)
    2009-10-22 10:19:21下载
    积分:1
  • STM32-DS18B20
    STM32单片机利用DS18B20温度传感器实现温度检测的源码,包括原理图和数据手册(The STM32 MCU DS18B20 temperature sensor temperature detection of the source, including schematics and datasheets)
    2021-04-26 22:28:45下载
    积分:1
  • OGRE
    OGRE第三方依赖库,方便用户编译OGRE源码时使用
    2023-08-26 14:30:04下载
    积分:1
  • mofashichuanqi
    说明:  制作游戏 魔法师传奇 源代码设计 MOFASHICHUANQI 经典老游戏(The production of the game source code for the design of the legendary magician MOFASHICHUANQI old classic games)
    2008-11-13 11:39:22下载
    积分:1
  • Bmp text can be embedded into the C source code. Can be embedded in text to bmp...
    可嵌入文本到bmp的C程序源代码.可嵌入文本到bmp的C程序源代码-Bmp text can be embedded into the C source code. Can be embedded in text to bmp the C source code
    2022-02-07 17:08:44下载
    积分:1
  • libnfc_1.5.0
    X86跨平台开源NFC测试工具及NFC操作库 LIBNFC可以实现对NFC读卡器的检测或是作为读写库使用(X86 cross-platform open source NFC testing tools and NFC manipulation library LIBNFC 丠FC reader detection or as a read-write library)
    2013-05-09 19:29:09下载
    积分:1
  • ZedGraph曲线使用范例
    资源描述 ZedGraph控件曲线显示范例,主要通过实时显示现场的采集的数据,来达到使用该控件的目的。 特别适合工业数据采集系统使用。
    2022-04-28 22:18:32下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载