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, May 27, 2003 at 11:32:21AM +0200, Michele Portolan wrote:
> Is it possible from an ISR to understand which thread was running when the
> interruption occurred?

cyg_thread_self() should return the current thread. I don't know what
happens if you where in an DSR or another ISR when the ISR went
off.

Also not this function is not documented as being callable in an
ISR. It should work with the current sources, but there is no guarantee
it will continue to work forever.

   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


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