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().

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to