Home > Software engineering >  MFC in the settimer and thread
MFC in the settimer and thread

Time:09-16

I want to ask everybody the bosses, I wrote two parallel threads processing function, and then use settimer timing at the end of the ontimer inside thread in the outside, but I found when a thread to run run does not go ontimer after this what to do...

CodePudding user response:

Could not start the thread into the timer? Blocked news pump?


CodePudding user response:

reference 1st floor zgl7903 response:
can not start the thread into the timer? Blocked news pump?

Is not starting a thread can enter the ontimer, blocking message pump refers to that respect, I'm not very understand, is it because I'm in thread used sedmessage,

CodePudding user response:

Check to see if the thread has been occupied, no release of the CPU time slice,

CodePudding user response:

Set the SetTimer time try a bit longer

CodePudding user response:

Still there is something wrong with the logic, or not have no access to even the ontimer function

CodePudding user response:

Upstairs positive solution, let's see if there is something wrong with the logic

CodePudding user response:

WM_TIMER priority is lower, no other higher-priority messages only when the queue to be processed to deal with it, may your message queue is other high-priority message processing again,
  • Related