Questions tagged [boost-interprocess]

Boost.Interprocess is a part of the C++ Boost library. It simplifies the use of common interprocess communication and synchronization mechanisms.

371 questions
0
votes
1 answer

Strange linker error when using Boost Interprocess 1.60 release build

We have some code using Boost Interprocess for managed shared memory. It links fine against our debug build of Boost 1.60, and it links against our release build of Boost 1.55, but when linking against our release build of Boost 1.60, I get these…
James Picone
  • 1,509
  • 9
  • 18
0
votes
1 answer

exception in boost:interprocess, shared memory object deletion

there is a simple piece of code which I moved to main function of sample app to avoid the affecting of any other application parts: namespace bi = boost:interprocess; bi::shared_memory_object::remove("shm"); …
amigo421
  • 2,429
  • 4
  • 26
  • 55
0
votes
1 answer

using mutexes and condition_variables

I'm looking for correct pattern of the interconnectivity between two threads using boost interprocess library. I don't think there is a something specific for the library unlike of typical parallel programming using standard library. So I'm looking…
amigo421
  • 2,429
  • 4
  • 26
  • 55
0
votes
2 answers

Boost interprocess mutex crashes instead of waiting on a lock?

I've been at this for quite a few days (even posted on the boost forum) and being able to make a second process recognize a locked mutex just doesn't seem to work. Please help. This is the code: A common header file: SharedObject.hpp #ifndef…
Nav
  • 19,885
  • 27
  • 92
  • 135
0
votes
1 answer

Does Boost.Interprocess sacrifice performance to achieve portability

I just read this page of the Boost.Interprocess documentation. It seems to suggest that in order to accommodate the differences among different operating systems and come to some agreement, certain interprocess mechanisms are not implemented with…
Lingxi
  • 14,579
  • 2
  • 37
  • 93
0
votes
1 answer

Boost Interprocess Send giving error: boost::interprocess_exception::library_error

I am using boost message queue to communicate among different processes. I am transmitting an object of type Packet. To do this, I am using serialization and deserialization in send and receive functions. However, when I try to send the data, I am…
Sapan
  • 1,593
  • 3
  • 24
  • 34
0
votes
0 answers

allocator is ambigous compile error

I have a file starting with following include but it gives the following below compiler error error: reference to 'allocator' is ambiguous | typedef allocator void_allocator; The file is not complete but Please note…
Sri Kant
  • 169
  • 1
  • 12
0
votes
1 answer

How to get boost_ordered_map to work in shared memory

This program give below compiles properly by doing g++ -o boostwrite boostwrite.cpp -lboost_system -lrt -lm -lpthread with version g++ (Ubuntu 4.9.2-0ubuntu1~14.04) 4.9.2 Setting the unordered_map works well but getting the value of it does not…
Sri Kant
  • 169
  • 1
  • 12
0
votes
1 answer

undefined reference to `shm_open' already with -L /lib -lrt -lpthread

I just want to use the boost library to create a shared memory on an ARM system. It work fine if you want to compile it only under ubuntu. However, when I want to cross compile it with TI's CCSv6 and angstrom toolchain, it keep pushing…
Peizheng Ma
  • 155
  • 1
  • 2
  • 8
0
votes
1 answer

Boost exception in message_queue constructor - The system cannot find the file specified

I'm working on an app that should only ever have one instance running. I've just added a class that's meant to represent the "single instance acquisition", where if the executable is seen as already running, it passes the command line parameters to…
Katana314
  • 8,429
  • 2
  • 28
  • 36
0
votes
1 answer

is there a replacement of shared_memory_object in c++11

I am trying to convert a c++ code to c++11 style and I would like to stop using some boost related libraries. I know c++11 borrowed a lot of concepts from boost. Is there a replacement of shared_memory_object in c++11?
Samer
  • 1,923
  • 3
  • 34
  • 54
0
votes
1 answer

boost interprocess error in boost interprocess containers

I am having a boost interprocess vector which contains string (boost::interprocess::basic_string) as values kept in shared memory, I am getting this error in long run include/boost/interprocess/mem_algo/rbtree_best_fit.hpp:1346: void…
0
votes
1 answer

Boost::Interprocess Write, then Read

I am attempting to use Boost::Interprocess to (i) create a set in shared memory in one process, and (ii) print the values of the set (1,2,3) in another process. This program compiles, but crashes: #include "stdafx.h" #include…
0
votes
1 answer

Boost template error using inter-process map

EDIT: Although not strictly the the answer I was looking for, that is because I was asking the wrong question. I have marked this question as "answered" because it helped me see what I was doing wrong (when put back in context, the class structure…
std''OrgnlDave
  • 3,912
  • 1
  • 25
  • 34
0
votes
1 answer

boost::interprocess::message_queue has to be created by the process which writes to it?

I have two processes using the same code to communicate with each other depending on boost 1.58.0's boost::interprocess::message_queue. typedef boost::shared_ptr mq_ptr; mq_ptr m_t2b_queue; mq_ptr…
Mr.Wang from Next Door
  • 13,670
  • 12
  • 64
  • 97