Hi everyone,
I am implementing a model with a loop to handle multiple messages. if there is a message meets requirement, the loop exits. but there MIGHT be other messages parked and I need to notify the sender of the message not being processed.
so i am thinking to add another loop to receive parked/unprocessed messages. but it's possible that there is NO parked message at all. so the receiver in the last loop should be able to return immediately regardless there is parked message or not. in window programming, there is an API to receive message from system message queue without waiting. so my question is: is it possible to have a receiver without waiting?
besides the no waiting receiver, i am open to any other suggestion that can solve my problem.
thanks a lot!