fix pthread_setname_np on linux
Some checks failed
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Failing after 1m6s
linux-x64-gcc / linux-gcc (push) Failing after 1m56s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Failing after 2m6s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Failing after 2m3s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Failing after 2m29s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Failing after 32m20s
linux-mips64-gcc / linux-gcc-mips64el (push) Failing after 32m18s

This commit is contained in:
tqcq 2023-12-28 13:05:43 +08:00
parent e17beb8d24
commit 15a3c9319d

View File

@ -39,7 +39,7 @@ public:
#if __APPLE__ #if __APPLE__
pthread_setname_np(impl->thread_name_.c_str()); pthread_setname_np(impl->thread_name_.c_str());
#else #else
pthread_setname_np(&impl->thread_, impl->thread_name_.c_str()); pthread_setname_np(impl->thread_, impl->thread_name_.c_str());
#endif #endif
impl->latch_.CountDown(); impl->latch_.CountDown();