Skip to main content

Message Queue

  • January 20, 2015
  • 1 reply
  • 0 views

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.

1 reply

Stephen Hjerpe
  • Participating Frequently
  • January 21, 2015

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.