Core: Add missing GetCurrentThreadName on POSIX

This commit is contained in:
Jérôme Leclercq
2023-06-07 14:12:32 +02:00
committed by GitHub
parent bf0d7674c7
commit 4c21821802

View File

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