From 4c2182180280238623d278ad2fc4754cbb3b14cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Wed, 7 Jun 2023 14:12:32 +0200 Subject: [PATCH] Core: Add missing GetCurrentThreadName on POSIX --- src/Nazara/Core/Posix/ThreadImpl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Nazara/Core/Posix/ThreadImpl.cpp b/src/Nazara/Core/Posix/ThreadImpl.cpp index dc0c0ba78..ec457aee5 100644 --- a/src/Nazara/Core/Posix/ThreadImpl.cpp +++ b/src/Nazara/Core/Posix/ThreadImpl.cpp @@ -15,6 +15,11 @@ namespace Nz::PlatformImpl return ::pthread_self(); } + std::string GetCurrentThreadName() + { + return GetThreadName(::pthread_self()); + } + std::string GetThreadName(pthread_t threadHandle) { #if defined(__linux__) || defined(__APPLE__)