aboutsummaryrefslogtreecommitdiff
path: root/src/threading/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/threading/thread.cpp')
-rw-r--r--src/threading/thread.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/threading/thread.cpp b/src/threading/thread.cpp
index e0f808c4d..f678a09be 100644
--- a/src/threading/thread.cpp
+++ b/src/threading/thread.cpp
@@ -225,6 +225,10 @@ void Thread::setName(const std::string &name)
pthread_setname_np(name.c_str());
+#elif defined(__HAIKU__)
+
+ rename_thread(find_thread(NULL), name.c_str());
+
#elif defined(_MSC_VER)
// Windows itself doesn't support thread names,