If this returns true, you should signal listening threads (with an event or a semaphore,
depending on how you dequeue it). If it returns false, the queue was full and your thing
was NOT added. You might wait and retry later (you could set up another event to signal it
has been read and wait for that, or maybe try on a timer), or just fail and throw an exception
or to abandon the message.
If this returns true, you should signal listening threads (with an event or a semaphore, depending on how you dequeue it). If it returns false, the queue was full and your thing was NOT added. You might wait and retry later (you could set up another event to signal it has been read and wait for that, or maybe try on a timer), or just fail and throw an exception or to abandon the message.