interprocess
interprocess copied to clipboard
Problem using interprocess_condition
Hi, I am checking the feasibility of implementing a simple IPC using boost::interprocess.
I have a problem with the interprocess_condition.
Brief explanation of my prototype,
- I have 2 processes, client and server process.
- Client create a request with interprocess_condition and share it with the server process using shared memory.
- Server process the request and use interprocess_condition to signal the client.
- Client process the reply and delete the interprocess_condition.
I observed that creating interprocess_condition on shared memory will create handle \BaseNamedObjects\boost.ipcXXXXXXXXXXXXXXX on windows.
Expected behavior: handle is deleted on the server process. Current observation: handle is not deleted on the server process even though I have deleted the interprocess_condition on the client.
Please refer to the attached video and source code. https://github.com/decryp7/BISharedMemoryIPCTest https://github.com/user-attachments/assets/c3c94307-49cb-49ba-bfe8-7aa404ae6470