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__)