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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

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