Re: Closing a thread that is waiting for Irq



Thanks for your quick replies.
I'have tried to close the handle to the event (HW IRQ) but
WaitForSingleObject doesn't return on that. Have you guys realy tried that
for HW IRQ in CE 4.2 ?

Setting the interrupt manually with SetInterruptEvent works fine so that
solves my problem

Igge

"Voidcoder" wrote:

> it was "... or whatever you want ..." in my post :)
>
>
> "Steve Maillet (eMVP)" <nospam1@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:ulH2K8KfFHA.1372@xxxxxxxxxxxxxxxxxxxxxxx
> > Instead of a global flag you can use the little known Event Data functions
> > GetEventData and SetEventData to store the abort flag. This is preferred
> > to forcing the event closed as closing the event generates an error
> > condition and you can't distinguish it from a real error.
> >
> >
> > --
> > Steve Maillet
> > EmbeddedFusion
> > www.EmbeddedFusion.com
> > smaillet at EmbeddedFusion dot com
> >
> >
>
>
>
.