I am a beginner.I was looking on an already implemented code where they are calling this pumpMessages.
Can anyone explain it in plain english about its functionality
PumpMessage contains the thread's message loop. PumpMessage is called to pump the thread's messages. .
When a thread is called it does the execution parallely.Is this pumpMessage is a message queue holding the messages of threads.If i'm having three threads will pumpMessage put it in a queue based on its priority and then display the messages.
Each thread has it's own message queue. So if you want to process Windows messages in a thread, it has to read/dispatch messages from that queue; the process is called pumping messages.
Just because you create a thread, doesn't automatically mean that it'll be handling messages. Are all three of your threads doing GUI stuff that requires a message pump?