Closing a thread that is waiting for Irq
- From: Igge H <IggeH@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 28 Jun 2005 23:57:03 -0700
Hello experts,
My problem:
In a stream device driver a measuring thread starts when the application
calls XXX_IOControl with a specific parameter. The tread waits for an event
(WaitForSingleObject()) which comes from hardware interrupt (created with
InterrruptInitialize). The timeout time is a few seconds.
Another call to XXX_IOControl closes the measuring thread down, it sets a
flag that the thread reads after WaitForSingleObject returns.
The problem is that the thread must close immediately, I do not have time to
wait for an WaitForSingleObject to timeout.
For what I understand it's not wise to use TerminateThread? It also seems
impossible to use WaitForMultipleObjects() when HW Interrupts are involved?
Anyone any Ideas?
(I use Windows CE 4.2 XSCALE platform)
Best regards
Igge
.
- Follow-Ups:
- Re: Closing a thread that is waiting for Irq
- From: Anthony Pellerin
- Re: Closing a thread that is waiting for Irq
- From: Charles Peterson
- Re: Closing a thread that is waiting for Irq
- Prev by Date: How to determine which ceddk api to use
- Next by Date: Re: Mapping physical memory into Application space
- Previous by thread: How to determine which ceddk api to use
- Next by thread: Re: Closing a thread that is waiting for Irq
- Index(es):
Relevant Pages
|
|