腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(2980)
视频
沙龙
1
回答
如果
使用
/
MTd
,
则在
boost
::
interprocess
::
shared_memory_object
中
崩溃
c++
、
boost
、
shared-memory
、
interprocess
每个都会在一个由std::unique_ptr全局实例化的类
中
创建一个共享内存对象。只有当我
使用
/
MTd
开关(多线程调试)而不是/MDd (多线程调试DLL)时,
崩溃
才会在FreeLibrary期间发生。我
使用
以下命令构建了
boost
库: b2.exe -a -j %NUMBER_OF_PROCESSORS% --prefix=%
BOOST
% --libdir=%
BOOST
%/lib/x86 --reconfig
浏览 34
提问于2020-01-17
得票数 0
1
回答
c++在读取时同步共享内存
c++
、
boost
、
shared-memory
我想同步一个
shared_memory_object
来读取iff --
shared_memory_object
已经存在。这是我用来与bool变量同步的代码。
boost
::
interprocess
::
shared_memory_object
my_shared_mat;while (mat_ready) my_shared_mat =
boost
::
interprocess
::
shar
浏览 0
提问于2018-04-13
得票数 4
回答已采纳
1
回答
如何在C++
中
跨多个进程
使用
共享向量
c++
、
boost
、
shared-memory
我可以共享向量,甚至可以从不同的进程
中
获得向量的大小,但当我
使用
at函数时,程序就会
崩溃
。::remove("MySharedMemory"); } /
浏览 45
提问于2020-04-13
得票数 1
回答已采纳
1
回答
对于
boost
interprocess
_mutex来说,拥有“进程持久性”意味着什么?
c++
、
boost
、
ipc
、
boost-interprocess
在
中
,(匿名)进程共享互斥类型具有进程持久性,其定义如下: namespace bi =
boost
::
interprocess
; bool isMemoryCreated = /*assume function toget this info*/;
浏览 0
提问于2019-04-10
得票数 0
1
回答
如何用
boost
::
interprocess
::managed_shard_memory快速地在共享内存
中
创建一个大数组?
c++
、
boost
、
shared-memory
、
boost-interprocess
我创建了一个"
boost
::
interprocess
::managed_shared_memory“实例,并
使用
"2 * 1024 * 1024 * 1024”元素构造了一个char数组。namespace bip =
boost
::
interprocess
;size_t size_ = 2*1024*1024*1024ul; auto
浏览 8
提问于2022-11-29
得票数 2
回答已采纳
2
回答
提高附加进程时删除managed_shared_memory的效率
c++
、
boost
、
ipc
、
shared-memory
然后重新启动进程1并且进程1的开始具有以下内容,{ { } {
boost
::
interprocess
::
shared_memory_object
::rem
浏览 2
提问于2013-08-09
得票数 2
1
回答
在通知
boost
内部处理条件变量时不保持锁会引起问题。
c++
、
multithreading
、
concurrency
、
multiprocessing
、
boost-interprocess
据我所知,等待过程使条件变量在共享内存
中
无效。当我用Ctrl终止等待进程时,通知过程会被卡在通知调用
中
。
boost
::
interprocess
::
interprocess
_mutex mut
浏览 3
提问于2020-01-30
得票数 0
3
回答
boost
::
interprocess
_exception -创建
shared_memory_object
时的library_error异常
c++
、
exception
、
boost
、
interprocess
在一些罕见的情况下(实际上是在单个客户端的计算机上),下面的代码会引发异常"library_error":ipc::
shared_memory_object
sharedMemSize) ipc::permissions perm; { m_shm = ipc::
shared_memory_object
logError(
浏览 17
提问于2016-06-27
得票数 0
1
回答
增强ipc新操作符和删除操作符
c++
、
boost
、
ipc
、
delete-operator
#include <
boost
/
interprocess
/shared_memory_object.hpp>#include <
boost
/
interprocess
/sync/scoped_lock.hpp>#include <
浏览 4
提问于2015-02-11
得票数 0
回答已采纳
1
回答
Boost
::进程间写入,然后读取
c++
、
boost-interprocess
我尝试
使用
Boost
::
Interprocess
(i)在一个进程的共享内存
中
创建一个集合,并(ii)在另一个进程
中
打印集合(1,2,3)的值。此程序可以编译,但会
崩溃
:#include <
boost
/
interprocess
/managed_shared_memory.hpp> #include <
boost
/
int
浏览 7
提问于2015-06-07
得票数 0
1
回答
Boost
进程间:*非托管*共享内存
中
的字符串?
c++
、
boost
我知道在共享内存
中
构造字符串需要一个分配器。这很好,但我无法找到如何做到这一点,因为所有示例都
使用
托管共享内存,该内存具有必须用作分配器的get_segment_manager()方法(
如果
我没有错的话)。>#include <
boost
/
interprocess
/sync/scoped_lock.h
浏览 3
提问于2021-10-27
得票数 1
回答已采纳
1
回答
boost
::进程间共享内存段函数find()在启动时挂起,
如果
段已经在那里
c++
、
boost
、
ipc
、
shared-memory
正如所讨论的,我试图
使用
boost
的共享内存功能将一个向量放入共享内存
中
。我能做些什么吗?可能是助推
中
的窃
浏览 4
提问于2014-07-29
得票数 0
回答已采纳
1
回答
如何在两个进程之间共享深度图像?
image
、
matlab
、
boost
、
kinect
、
shared-memory
我有4个不同的深度相机可供我
使用
: Kinect,Xtion,PMD nano,Softkinetic。
浏览 1
提问于2013-01-19
得票数 2
1
回答
Windows进程和WSL Linux进程之间的共享内存
c++
、
boost
、
ipc
、
windows-subsystem-for-linux
、
wsl-2
我想
使用
共享内存技术在进程之间共享数据。我可以分别在Windows和WSL(Windows Subsystem for Linux)上
使用
boost
库来做到这一点。两者都工作得很好。发件人脚本 #include <chrono>#include <
boost
/
interprocess
/<em
浏览 214
提问于2020-12-16
得票数 7
2
回答
在操作系统上将共享内存从x86读取到x64,反之亦然
c++
、
macos
、
boost
、
shared-memory
、
boost-interprocess
如果
我从64位应用程序创建SM,并在32位应用程序上打开它,它将失败。//for 64 bit// for 32 bit64位应用程序创建的文件位于如下路径: /private/tmp/<em
浏览 0
提问于2011-10-24
得票数 4
回答已采纳
1
回答
利用
boost
进程间访问共享对象的向量元素
c++
、
visual-c++
、
boost
、
boost-interprocess
在父进程
中
,我在MySegmentObject段
中
构造了设备对象,在该对象的构造函数
中
,我在MySegmentVector段
中
创建了向量。我做错了什么,也许我错过了一些关于共享记忆的概念。> #include <
boost
/
interprocess</
浏览 1
提问于2010-10-27
得票数 1
2
回答
无法初始化
Boost
共享内存
c++
、
boost
、
shared-memory
嗨,这是我的问题: #include <
boost
/
interprocess
/managed_shared_memory.hpp> try { managed_s
浏览 1
提问于2016-09-28
得票数 2
回答已采纳
1
回答
增强
shared_memory_object
删除功能的
使用
function
、
memory
、
boost
、
shared
类operator=
中
删除函数的
使用
#include <iostream> using namespace
boost
::
interprocess
shared_memory_object
::remove(n)
浏览 0
提问于2019-08-21
得票数 0
回答已采纳
1
回答
与char不同类型的
Boost
shared_memory_object
问题
c++
、
boost
、
concurrency
、
shared-memory
、
interprocess
我对
boost
shared_memory_object
和mapped_region有个问题。我想在内存对象
中
写入一组对象(结构)。
如果
结构只包含一个字符,那么一切都没问题;
如果
我只是在结构
中
添加一个int,那么
如果
我放置了太多的对象(比如70个对象,远远低于块的限制),那么在编写时就会出现分段错误。或者我只是在代码
中
做错了什么。注释行是在分解时给我一个分段错误的.#include <
boost
/
interpr
浏览 4
提问于2010-01-06
得票数 2
回答已采纳
1
回答
Boost
.
Interprocess
:测试用例给出了不同的结果(GCC)
c++
、
gcc
、
interprocess
在用优化进行编译时,我遇到了一些
Boost
.
Interprocess
分配器的问题。我设法把它写成了一个40行的测试用例,其中大部分是样板。只需查看下面代码
中
的create()和main()函数即可。#include <iostream>#include <
boost
/
interprocess
浏览 1
提问于2011-11-19
得票数 3
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
一起学习Boost标准库-Boost.texical
boost:asio中的buffer与streambuf简介
在周末停机后《Switch运动》服务器重新恢复上线
AI视野:个性化心脏病诊断新进展、大多数美国人已经在用人工智能、加州无人驾驶汽车正受到袭击
【行业资讯】PHP 7.4.9 发布
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券