Re: question about thread scheduling

Tech-Archive recommends: Fix windows errors by optimizing your registry



thanks for your help.

I think the problem with my code is that after execution the instruction
inside IST, the thread goes into a suspended state, so that it can't be
rescheduled even there is an SYSINTR_RESCHED return from ISR, so I add the
following code inside XXX_Init, which is automatically called after the dll
is loaded:
//Get the thread started
while(!g_4msTimerStruct.abort){
ResumeThread( g_4msTimerStruct.hThread );
Sleep(1);
}

hoping that this piece of code will resume the suspended thread, but it does
not work

Zhiqiang
"Helge Kruse" <Helge.Kruse-nospam@xxxxxxx> schrieb im Newsbeitrag
news:ewuCynhaHHA.4808@xxxxxxxxxxxxxxxxxxxxxxx

"Zhiqiang Li" <zhiqiang.li@xxxxxxxxxx> wrote in message
news:%23XirrygaHHA.4616@xxxxxxxxxxxxxxxxxxxxxxx

I also have problems with debugging code inside PeRPISR(void), I can
not perform actions like step into, and so on.

Yes, that's true but expected. It's an interrupt service routine (ISR).
You can only debug an IST.

/Helge



.