Skip to main content

I was wondering if there is a mechanism to determine if the message queue used for sending and receiving thread messages is full, or how much space is remaining in the queue? We've been adjusting the MESSAGE_QUEUE_SIZE, but would like a way to know if we're getting close to full, and handle it in the application.

I was wondering if there is a mechanism to determine if the message queue used for sending and receiving thread messages is full, or how much space is remaining in the queue? We've been adjusting the MESSAGE_QUEUE_SIZE, but would like a way to know if we're getting close to full, and handle it in the application.

No, there is no mechanism or library routine for this. You can tell it's empty by trying to read from it.