在iOS中使用共享内存

问题描述 投票:0回答:1

有没有办法在iOS中使用共享内存?

我正在使用Boost库(在C ++ lib项目中,并且当我想初始化共享内存对象时:

shared_memory_object(open_or_create, "sharedMemoryVideo", read_write);

我遇到错误,但仅在物理设备上(模拟器正在运行):

libc++abi.dylib: terminating with uncaught exception of type boost::interprocess::interprocess_exception: Operation not permitted

我正在使用Boost库的最新版本(v1.70)。

ios boost shared-memory
1个回答
0
投票

不,不可能。

我使用带有C指针的经典方法来存储数据。

© www.soinside.com 2019 - 2024. All rights reserved.