Where is _Thread_Get_executing() defined?

Gedare Bloom gedare at rtems.org
Tue Jun 17 13:55:31 UTC 2014


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



More information about the users mailing list