This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Thread identification
On Tue, May 27, 2003 at 11:00:52AM +0100, Nick Garnett wrote:
> "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?
Profiling. Find out which threads are running the most.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss