Right now, a user can call into the message pump, which blocks until the program closes.
I would like a way to pump through any queued messages and then return. This would block as long as there are messages waiting.
The big win here is allowing heavy work which must happen on the main thread to be broken up to keep the main thread responsive.
Right now, a user can call into the message pump, which blocks until the program closes.
I would like a way to pump through any queued messages and then return. This would block as long as there are messages waiting.
The big win here is allowing heavy work which must happen on the main thread to be broken up to keep the main thread responsive.