Boost.Interprocess is a part of the C++ Boost library. It simplifies the use of common interprocess communication and synchronization mechanisms.
Questions tagged [boost-interprocess]
371 questions
0
votes
0 answers
How to keep a pointer on a shared data in a boost shared memory segment
How to keep a pointer on a shared data in a boost shared memory segment ?
I have a function which returns:
shm.construct(_nameSeg.c_str())(innerDataAllocator);
But outside of the function, the object pointed by SharedData is…

Bonjour123
- 1,421
- 12
- 13
0
votes
1 answer
Keep boost::allocators as class members. Can use them to initialize containers
I want to put in shared memory a struct1 containing a vector of struct2 containing a wstring. So:
I made two allocators, one for wchar, one for struct2.
Then defined my containers wstring and vector.
I want to keep the wchar and struct2…

Bonjour123
- 1,421
- 12
- 13
0
votes
2 answers
"boost_interprocess" folder appearing in Mac Documents folder
I searched StackOverflow and found two threads referring to "boost interprocess" but both of them basically just address the Windows OS and also are not discussing the problem I'm having. The same search on Google is the same problem -- Windows OS…
0
votes
1 answer
Shared memory and Cloudfoundry container issue with php exec using boost interprocess library
We have our custom php-buildpack running in cloudfoundry container.
Issue is that apache start -> php-fpm (here shared memory code run fine). php-fpm exec() php scripts which start -> php-cli (it core dump on shared memory code).
For shared memory…

Mr.Pramod Anarase
- 1,454
- 2
- 15
- 19
0
votes
0 answers
Why is there no contention over a Boost Interprocess message_queue in this example?
I am trying to figure out a good naming scheme for Boost Interprocess message_queue's. Suppose there is a group of processes all using the same queue. There may be multiple simultaneous 'runs' of this group of processes. I assume it is required for…

Ton van den Heuvel
- 10,157
- 6
- 43
- 82
0
votes
1 answer
boost allocator fails to compile in recursive context
I have a full sample of what I want to accomplish below. Essentially I wanted my tree structure held in a memory map. The code below doesn't compile. I don't understand the (expansive) error; it's some kind of failed type conversion. How do I adjust…

Brannon
- 5,324
- 4
- 35
- 83
0
votes
0 answers
boost interprocess rbtree_best_fit
I use managed_shared_memory and unordered_map
set 3 million records, per record about 1100bytes, total about 3GB data
when set success, I clear the map mmediately, but it crash

Eric Xu
- 69
- 4
0
votes
1 answer
boost::interprocess message queue throw error
I am using boost interprocess message queue in windows, however I met a issue that it will throw an error when max_msg_size doesn't equals to buffer_size,part of my code is as below:
//process A
message_queue::remove(name);
m_MQ =…

Gordon
- 396
- 2
- 15
0
votes
1 answer
Creating Managed Shared Memory using Boost Interprocess takes long time
I am using the Boost.Interprocess library on an Intel i7 processor with Windows Embedded 7 64bit operating system. I have successfully created 2 managed shared memories about 400 Megabytes size, from 2 different processes. When I try to create a 1…

yvelgl
- 1
- 1
0
votes
2 answers
C++17 - node extraction/reinsertion with custom allocator - works with clang++/libc++ but not libstdc++
I my current project i'm storing some data in an unordered_map in shared memory, using the Boost Interprocess library. Here's a minimal example:
#include
#include
#include
#include
#include…

EllipsenPark
- 127
- 9
0
votes
0 answers
Boost Interprocess | build an memoryHandler
I am trying to build a memoryHandler which allows me to create and manage my shared memory, e.g. I want to create a managed_memory_object only once.
When I construct an segment I want to actually store the return pointer as a member variable in my…

manulinger
- 1
- 1
0
votes
0 answers
Check if a boost::interprocess::shared_memory_object is empty?
boost::interprocess::shared_memory_object can be constructed with the default constructor, which creates an empty shared_memory_object (i.e. one that has no shared memory owned by it). Depending on the situation, my code might construct a…

Bernard
- 5,209
- 1
- 34
- 64
0
votes
1 answer
Read access violation for memory mapped vector in debug mode
While attempting to use boost::interprocess for storing a std::vector in a memory mapped file, I am getting the exception Exception thrown: read access violation. when I try to push back on a loaded vector, but only in debug mode.
This minimal…

gmas80
- 1,218
- 1
- 14
- 44
0
votes
1 answer
Boost Interprocess cannot find boost/config/user.hpp
I am compiling a Boost Interprocess example:
#include
#include
#include
#include
#include
int main(int argc, char *argv[])
{
using namespace…

user997112
- 29,025
- 43
- 182
- 361
0
votes
1 answer
Convert boost`s bufferstream to istream
Is it possible to convert boost`s bufferstream to istream? I am trying to do conversion, however it is still unclear to me whether I am doing something wrong or it is just not possible to do that at all. I would appreciate any answers.
char *copy =…

mapreduce_kaz
- 103
- 7