I have a scenario where the shared memory area is exclusively accessed by two different processes. When I launch the processes, the first process successfully locks the mute
std::mutex does not support interprocess operation but pthread library has interprocess mutex that you can use. Example here.