This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Thread identification


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]