Commit b44ec453 authored by Emmanuel Gil Peyrot's avatar Emmanuel Gil Peyrot Committed by Link Mauve
Browse files

Set thread names on Haiku

parent fe2bb774
Pipeline #66834 passed with stages
in 5 minutes and 15 seconds
...@@ -169,6 +169,14 @@ static inline void dav1d_set_thread_name(const char *const name) { ...@@ -169,6 +169,14 @@ static inline void dav1d_set_thread_name(const char *const name) {
pthread_setname_np(pthread_self(), "%s", (void*)name); pthread_setname_np(pthread_self(), "%s", (void*)name);
} }
#elif defined(__HAIKU__)
#include <os/kernel/OS.h>
static inline void dav1d_set_thread_name(const char *const name) {
rename_thread(find_thread(NULL), name);
}
#else #else
#define dav1d_set_thread_name(name) do {} while (0) #define dav1d_set_thread_name(name) do {} while (0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment