Where is _Thread_Get_executing() defined?

Martin Galvan martin.galvan at tallertechnologies.com
Tue Jun 17 13:57:03 UTC 2014


Found it right after I hit Send. Thanks a lot!


On Tue, Jun 17, 2014 at 10:55 AM, Gedare Bloom <gedare at rtems.org> wrote:

> Anything named _Capital_lowercase is usually in cpukit/score. From
> there, grep should help,
> include/rtems/score/thread.h
> 620:RTEMS_INLINE_ROUTINE Thread_Control *_Thread_Get_executing( void )
>
> You can access _Thread_Executing directly only if in a critical section
>
> On Tue, Jun 17, 2014 at 9:44 AM, Martin Galvan
> <martin.galvan at tallertechnologies.com> wrote:
> > While inspecting the code of rtems_stack_checker_is_blown I noticed at
> one
> > point it calls _Thread_Get_executing(). I couldn't find that function
> > defined anywhere, where is it?
> >
> > The reason I wanted to see how's defined is because _Thread_Handler()
> uses
> > _Thread_Executing directly instead of calling _Thread_Get_executing().
> > What's the difference between the two, and when should each be used?
> >
> > Thanks a lot!
> >
> > _______________________________________________
> > users mailing list
> > users at rtems.org
> > http://lists.rtems.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20140617/cdeedb89/attachment.html>


More information about the users mailing list