#15492: pthread_setname_np support
---------------------------------+----------------------------
Reporter: cocobean | Owner: nobody
Type: enhancement | Status: new
Priority: normal | Milestone: Unscheduled
Component: System/libroot.so | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
---------------------------------+----------------------------
Comment (by kallisti5):
The latest mesa uses the following:
{{{
static inline void u_thread_setname( const char *name )
{
#if defined(HAVE_PTHREAD)
#if DETECT_OS_LINUX || DETECT_OS_CYGWIN || DETECT_OS_SOLARIS
pthread_setname_np(pthread_self(), name);
#elif DETECT_OS_FREEBSD || DETECT_OS_OPENBSD
pthread_set_name_np(pthread_self(), name);
#elif DETECT_OS_NETBSD
pthread_setname_np(pthread_self(), "%s", (void *)name);
#elif DETECT_OS_APPLE
pthread_setname_np(name);
#else
#error Not sure how to call pthread_setname_np
#endif
#endif
(void)name;
}
}}}
It doesn't matter which we implement.. but at least one needs implemented
:-)
--
Ticket URL: <https://dev.haiku-os.org/ticket/15492#comment:2>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.