PumpMessages

Hi,

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. .



Last edited on
PumpMessage contains the thread's message loop. PumpMessage is called to pump the thread's messages.
Your description is already in plain English. What specifically do you want to know?
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.
Last edited on
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?
Topic archived. No new replies allowed.