How to use _Thread_Get() function properly?

Utkarsh Rai utkarsh.rai60 at gmail.com
Mon Aug 31 18:14:27 UTC 2020


Thanks, I'll check it out.

On Mon, Aug 31, 2020 at 11:35 PM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> 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().
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200831/9996a526/attachment.html>


More information about the devel mailing list