As far as I know, you can use interprocess mutex instead of boost :: thread mutex, but keep in mind that they will probably be slower as they are designed to work in interprocess memory.
You cannot use synchronization mechanisms from a stream and use them in interprocess, they are not at all intended for multiprocessor synchronization.
source
share