This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Processes pending events for the calling thread for maxtime milliseconds or until there are no more events to process, whichever is shorter.
You can call this function occasionally when you program is busy doing a long operation (e.g. copying a file).
Calling this function processes events only for the calling thread.