This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Thread identification
- From: "Gary D. Thomas" <gary dot thomas at mind dot be>
- To: Michele Portolan <michele dot Portolan at imag dot fr>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 27 May 2003 07:00:58 -0600
- Subject: Re: [ECOS] Thread identification
- Organization:
- References: <00a301c32432$e0038e40$9881ab93@imag.fr>
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