Re: question about thread scheduling
- From: "Zhiqiang Li" <zhiqiang.li@xxxxxxxxxx>
- Date: Mon, 19 Mar 2007 14:17:22 +0100
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
.
- Follow-Ups:
- Re: question about thread scheduling
- From: Zhiqiang Li
- Re: question about thread scheduling
- References:
- question about thread scheduling
- From: Zhiqiang Li
- Re: question about thread scheduling
- From: Remi de Gravelaine
- Re: question about thread scheduling
- From: Zhiqiang Li
- Re: question about thread scheduling
- From: Henrik Viklund
- Re: question about thread scheduling
- From: Zhiqiang Li
- Re: question about thread scheduling
- From: voidcoder
- Re: question about thread scheduling
- From: Zhiqiang Li
- Re: question about thread scheduling
- From: Helge Kruse
- question about thread scheduling
- Prev by Date: Re: question about thread scheduling
- Next by Date: Re: Authentication under CE 4.2
- Previous by thread: Re: question about thread scheduling
- Next by thread: Re: question about thread scheduling
- Index(es):