This method calls the pend operation for the message queue to block the caller until there is a message in the queue.
Public
virtual void pend()