How to use _Thread_Get() function properly?

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Aug 31 18:05:26 UTC 2020


On 31/08/2020 19:52, Utkarsh Rai wrote:

> Hello,
> I have been trying to get the pointer to the control block of a thread 
> using the _Thread_Get() function for stack sharing using a 
> shared-memory object, the implementation can be seen here 
> <https://github.com/ur10/rtems/blob/Final_release/cpukit/posix/src/shmopen.c#L103>. 
>

This doesn't work. You must not obtain a mutex with disabled interrupts.

For the documentation, see Doxygen markup of _Thread_Get() and 
_Objects_Get(). See also existing users of _Thread_Get().



More information about the devel mailing list