regarding boost::interprocess::message_queue operation

Hi Everyone,

Using boost::interprocess methods, I am communicating with different process. The followings are my scenario. Please suggest better ways to read message queues.

Process A:

1. Updates the shared memory
2. Passes the status in Message Queue.

Process B:

1. To know the operation, it reads the Message Queue
2. According to the message, It reads the shared memory.

How can Process A notify Process B - only at the time of sending a new message? Rather than reading Message Queue in a timed manner or continuously, Process B can only read at the time of new messages arrival.

Thanks

Topic archived. No new replies allowed.