登录
首页 » c++ » boost shared_mutex

boost shared_mutex

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

代码说明:

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

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

发表评论

0 个回复

  • LCDExplorer
    Microchip pic24系列 单片机 LCD驱动 包括RTCC和ADC功能(Microchip pic24 MCU LCD driver RTCC ADC)
    2014-12-29 10:10:56下载
    积分:1
  • WebCrawlers
    搜索是网络技术的热门课题,网络爬虫是搜索技术的基础,用VC++编写的网络爬虫可以很好的学习这门课题,适合初学者(Search is a hot topic of network technology, network reptiles is based on search technology, using VC++ Prepared reptiles can be a very good network of learning in this subject, suitable for beginners)
    2008-06-29 23:48:22下载
    积分:1
  • Pro.Entity.Framework.4.0
    在visual studio 开发平台中,基于c#的asp.net mvc 中最常用的数据库框架--实体框架的功能介绍和使用。(In visual studio development platform, based on the c# asp.net mvc framework most commonly used database- Entity Framework Features and use.)
    2014-02-27 23:16:34下载
    积分:1
  • ssocks-0.0.14.tar
    sSocks是一个socks代理工具套装,可用来开启socks代理服务,支持socks5验证,支持IPV6和UDP,并提供反向socks代理服务,即将远程计算机作为socks代理服务端,反弹回本地,极大方便内网的渗透测试,其最新版为0.0.13(sSocks is a socks proxy tool sets, can be used to open the socks proxy services, support socks5 authentication, support for IPV6 and UDP, and to provide reverse socks proxy services, about the remote computer as socks proxy server, bounce back to the local, which greatly facilitates network penetration testing, and its latest version is 0.0.13,)
    2020-12-10 16:09:19下载
    积分:1
  • prony
    this is a useful method of realizing prony in matlab system
    2021-02-03 14:39:59下载
    积分:1
  • 社区档案管理软件
    社区档案管理软件自定义档案分类及各档案分类目录项信息,满足不同档案录入需求。支持Excel导入档案条目信息,实现大批量档案条目信息统一,减少手动录入工作量,提高工作效率及工作质量。(The community archives management software customizes the information of archives classification and catalogue items to meet the needs of different archives entry. Supporting Excel to import file entry information, realizing a large number of file entry information unification, reducing manual input workload, improving work efficiency and quality.)
    2020-06-23 23:00:01下载
    积分:1
  • 图像置乱加密源码
    本代码实现的是将一幅明文图像经过置乱扩散操作后得到密文图像。置乱与扩散过程均采用logistic映射,分别改变像素点的位置,改变像素点的值,从而得到一幅扰乱得图像,实现了加密的目的。
    2022-06-01 07:35:23下载
    积分:1
  • Directx-8.1-Programming-for-CPP
    应用程序向导。此工具提供了一个应用程序向导创建一个DirectX应用程序与DirectX组件的任意组合。这个工具是在安装过程中的软件开发工具包(SDK)安装,并创建一个新的应用程序时,可以在Microsoft Visual Studio® 访问。欲了解更多信息,请参阅应用程序向导。 错误查找工具。使用这个工具,采取十六进制的错误代码,并期待一个基于文本的错误信息。 SDK安装的一部分安装此工具,可以从开始,程序,微软DirectX8.1 SDK,DirectX的公用事业,DirectX错误查询访问。 DirectX图形的新功能(AppWizard. This tool provides an application wizard for creating a DirectX application with any combination of DirectX components. This tool is installed during the software development kit (SDK) install and can be accessed within Microsoft Visual Studio® when creating a new application. For more information see AppWizard. Error Lookup Tool. Use this tool to take the hexadecimal error codes and look up a text-based error message. This tool is installed as part of the SDK install and can be accessed from Start, Programs, Microsoft DirectX 8.1 SDK, DirectX Utilities, DirectX Error Lookup. New Features in DirectX Graphics )
    2012-01-11 20:54:36下载
    积分:1
  • TEF6686源码
    TEF6686实例开发,优化停台参数。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
    2022-02-28 10:11:29下载
    积分:1
  • OPCCSharp
    c# OPC通讯包装类,已在项目中应用,可参考(c# OPC communication wrapper class has been in the project application, can be found)
    2010-03-12 11:36:11下载
    积分:1
  • 696518资源总数
  • 105895会员总数
  • 18今日下载