[ECOS] Thread identification
Gary D. Thomas
gary.thomas@mind.be
Tue May 27 14:32:00 GMT 2003
On Tue, 2003-05-27 at 03:32, Michele Portolan wrote:
> Is it possible from an ISR to understand which thread was running when the
> interruption occurred?
>
You should be able to call cyg_current_thread() to determine this.
That said, an ISR should not care which thread called it. ISRs can't
call any kernel functions which manipulate threads.
--
Gary D. Thomas <gary.thomas@mind.be>
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list