登录
首页 » c++ » boost shared_mutex

boost shared_mutex

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

代码说明:

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

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

发表评论

0 个回复

  • PCIS-DASK-Function-Reference
    ADLINK PCI系列的编程文档,利用板卡实现数据采集、控制等要求时必不可少(ADLINK PCI series of programming documents, the use of cards for data acquisition, control and other essential requirements)
    2013-08-20 11:15:49下载
    积分:1
  • a
    说明:  实现算法能很好的运用到平时的学习中,生活中(Algorithm can be well applied to the usual course of study, life)
    2013-11-29 14:19:44下载
    积分:1
  • image_demo
    本工程在C6678上实现了BMP图像的读取,滤波,锐化等操作。可以作为多核DSP图像处理的资料,自己在CCS6平台上测试验证没有问题(This project has realized the reading, filtering and sharpening of the BMP image on C6678. It can be used as a multi-core DSP image processing data, and to test validation on the CCS6 platform)
    2017-12-12 22:39:59下载
    积分:1
  • C# 自定义DataGridView控件列单元格外观
    C# 自定义DataGridView控件列单元格外观的例子源码,这里只是一个演示,教会一种方法,因此仅定制DataGridView第一列单元格外观。最好是把数据库连接好,有数据读出这样能更好的看到自定义单元格的效果,详细的实现代码请下载源码包。
    2022-08-24 18:26:07下载
    积分:1
  • 6645678
    在文档 视图程序中加入闪屏,VC++编程精选学习源码,很好的参考资料。(Join the splash screen in the document view program, VC++ programming featured learning source code, a good reference.)
    2013-11-19 18:55:34下载
    积分:1
  • pengl
    包含了所有的opengl头文件.h 库文件.lib 和dll文件. 如:opengl32.dll opengl32.lib glew32.dll glut32.dll glu32.dll glut32.lib glew32.dll glew32.lib 等(contains all opengl headers. H the paper. Lib and dll document. Such as : opengl32.dll opengl32.lib glew32.dll glut32 . dll glu32.dll glut32.lib glew32.dll glew32. lib, etc.)
    2020-09-09 13:58:05下载
    积分:1
  • lab9
    the algorithm which replace the background image with another alpha chanels
    2013-05-27 02:07:45下载
    积分:1
  • RPC_errAnaly
    利用严格成像模型生成的虚拟格网数据解算卫星影像的RPC参数,用于卫星影像定位(Use strict generated virtual imaging model grid data calculating satellite images RPC parameters for satellite image positioning)
    2021-03-05 14:59:31下载
    积分:1
  • guzhangjianche
    说明:  一个24V输出故障检测子函数;用于电源检测系统;(A 24V output fault detection son functions Used for power test system )
    2011-03-27 16:39:38下载
    积分:1
  • LTE_UL
    仿真过程中,将改进算法那与经典算法进行比较,通过对仿真数据如系统时延、系统丢包概率以及系统吞吐量的比较分析,评估改进算法的正确性和性能。(Simulation process, the improved algorithm that compares with the classical algorithm, through the simulation data system latency, packet loss probability of the system as well as a comparative analysis system throughput, improved assessment of the correctness and performance of the algorithm.)
    2014-05-05 12:12:19下载
    积分:1
  • 696518资源总数
  • 106215会员总数
  • 5今日下载