aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/utils/tasks.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/host/lib/utils/tasks.cpp b/host/lib/utils/tasks.cpp
index 658c361a9..a2d7f82d3 100644
--- a/host/lib/utils/tasks.cpp
+++ b/host/lib/utils/tasks.cpp
@@ -29,9 +29,7 @@ public:
{
_task = std::thread([this, task_fcn](){ this->task_loop(task_fcn); });
if (not name.empty()) {
-#ifdef HAVE_PTHREAD_SETNAME
- pthread_setname_np(_task->native_handle(), name.substr(0,16).c_str());
-#endif /* HAVE_PTHREAD_SETNAME */
+ set_thread_name(&_task, name);
}
}