I have a legacy C++, MFC application, currently compiling in VS2005.
It has several socket connections, as well as a user GUI.
The sockets are terminated in non-MFC threads, some work is done in those background threads, then a message is posted to the MFC main queue so the main application can take notice and do the appropriate actions. Note that there is one message posted to the main thread for each socket-received message.
The main thread actions that result generally take a fraction of a second each.
If I receive a flood of messages, however, the GUI can become sluggish or even non-responsive for a period, as the main thread is busy doing the integrate-new-data tasks instead of responding to the user.
If I have managed to express my problem clearly: any suggestions for solutions, such that the GUI remains responsive in the face of a large number of these events?