From 15a3c9319d8c0b659fd7ce823d7fca55f317fc84 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Thu, 28 Dec 2023 13:05:43 +0800 Subject: [PATCH] fix pthread_setname_np on linux --- src/ulib/system/thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ulib/system/thread.cpp b/src/ulib/system/thread.cpp index b892696..8216164 100644 --- a/src/ulib/system/thread.cpp +++ b/src/ulib/system/thread.cpp @@ -39,7 +39,7 @@ public: #if __APPLE__ pthread_setname_np(impl->thread_name_.c_str()); #else - pthread_setname_np(&impl->thread_, impl->thread_name_.c_str()); + pthread_setname_np(impl->thread_, impl->thread_name_.c_str()); #endif impl->latch_.CountDown();