I have a C++ application, that spawns a child Rust binary via fork/exec. How do I create shared memory between C++ and Rust? In C++ I can use shmget to create a shared memory block, what do I do on the Rust side? Thanks. Source: Windows Que..
When I using boost shared memory to share (Opencv Mat)data between 2 different processes in C++, I get that accesses violation error, I use win 10 and vs2019 and c++ 11. shared_memory_object::remove("SharedMemoryForCvMat_Mono"); const int data_size = 1920 * 1200 * 2; managed_shared_memory msm(open_or_create, "SharedMemoryForCvMat_Mono", data_size + sizeof(SharedImageHeader) + 1024 /* is it enoufh? */); auto ..
Do we need to synchronise memory access if only one process is writing and other is reading from Posix shared memory? Source: Windows Que..
I’m trying to solve a publisher suscriber problem using a buffer in shared memory. My Publisher writes a message in buffer from an offset (from the starting of the buffer) using memcpy() in C++ and after it has written the message it stores this offset, where it wrote the last message, in another segment in ..
I managed to sort different arrays with CPU or GPU (without using shared memory) implementation of Odd-Even sort algorithm, but I’m having issues with using shared memory in CUDA. This is my invocation of the kernel -> main.cu: //shared memory size sizeVSM = nThreadPerBlock.x * sizeof(float); for (int i = 0; i < array_size; i++) ..
I have referred to this question: 'unlink()' does not work in Python's shared_memory on Windows. It seems that shm.unlink() doesn’t work. I will follow the method provided in the accepted answer to the above question. I still want to manually remove this object when cleaning up a process. This file is present under /dev/shm in ..
I am using boost’s ipc library for saving complex object, include images, in shared memory, used by several processes. Let’s call this object MyImage. The shared memory is a circular buffer saving several MyImage objects at a time. In my code there are two (or more) processes writing to a segment in a shared memory, ..
Language: C++/C . System: Linux I have a shared library foo.so which opens three other shared libraries bar1.so, bar2.so and bar3.so each of bar1.so, bar2.so, bar3.so have Entry functions which are called using dlsym after dlopen and different types of objects are created within barX.so libs. bar1.so, bar2.so and bar3.so also have dynamic linking to ..
I’m developing a .NET program which suppose to be communicate with other existing program in same machine using Shared Memory (Memory Mapped Files), The existing program itself include a native dll and .NET wrapper / bridge dll which I could consume to communicate with the other program. The thing is the other program is very ..
I want to use boost::interprocess condition variable on an already locked mutex. I have locked the mutex already using mutex->lock(); function and because of this scoped_lock is not really appropriate for me. Is there any API available in boost::interprocess to wait on a condition variable without using scoped_lock? I am looking for an API that ..