<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Nov 18, 2017 10:29 AM, "Sebastian Huber" <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
all the POSIX synchronization objects use thread queues. Each thread queue has a name member. It would be nice to have a function to set this name. Unfortunately there is no POSIX, glibc, FreeBSD or QNX function to do this. Some IBM OS have a pthread_mutexattr_setname_np()<wbr>. For threads glibc has a pthread_setname_np(). We have some options.<br>
<br>
1. Offer no function to set the names (not really great for debugging and system diagnostics).<br>
2. Add *_np() functions to Newlib pthread.h, e.g. pthread_mutex_setname_np(mtx, name), PTHREAD_MUTEX_NAMED_<wbr>INITIALIZER_NP(name).<br>
3. Add an RTEMS-specific header <rtems/pthread.h> with rtems_pthread_mutex_set_name()<wbr>, etc. functions.<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">I lean to #2.</div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
--<br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone : <a href="tel:%2B49%2089%20189%2047%2041-16" value="+4989189474116">+49 89 189 47 41-16</a><br>
Fax : <a href="tel:%2B49%2089%20189%2047%2041-09" value="+4989189474109">+49 89 189 47 41-09</a><br>
E-Mail : [ <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/devel</a> | sebastian.huber at <a href="http://embedded-brains.de" rel="noreferrer" target="_blank">embedded-brains.de</a> ] PGP : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
______________________________<wbr>_________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/devel</a></blockquote></div><br></div></div></div>