C ++是有任何线程写进去(速度比不带螺纹的锁打掉安全类似物)的组成部分? [英] C++ Is there any threadsafe to write into (faster than not thread safe analogs busted with locks) component?

查看:137
本文介绍了C ++是有任何线程写进去(速度比不带螺纹的锁打掉安全类似物)的组成部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

于是,我尝试了一些组件(地图,集,向量,数组,队列ü命名),我总是不得不做出艾德里安线程安全......这让艾德里安慢...是否有任何线程写入到组件?在升压或地方?

So I tried some components (maps, sets, vectors, arrays, queues U name it), I always have to make tham thread safe... and that makes tham slow... Is there any threadsafe to write into component? in Boost or anywhere?

推荐答案

您可以找到一些在英特尔线程构建模块。您还可以找到一些在微软的PPL。

You can find some in Intel's Thread Building Blocks. You can also find some in Microsoft's PPL.

这篇关于C ++是有任何线程写进去(速度比不带螺纹的锁打掉安全类似物)的组成部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆