[ECOS] Thread identification
Tue May 27 12:07:00 GMT 2003
"Michele Portolan" <michele.Portolan@imag.fr> writes:
> Is it possible from an ISR to understand which thread was running when the
> interruption occurred?
You can probably call cyg_thread_self(). But why would you want to do
this? The current thread has absolutely nothing to do with any
interrupt. Any interrupt code that changes its behaviour depending on
the thread it interrupts is, almost by definition, poorly designed and
prone to bugs.
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com/ The eCos and RedBoot experts
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