1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-21 21:17:49 +02:00

implement setting thread name on macOS/iOS

This commit is contained in:
Andrey Filipenkov 2021-03-05 19:22:10 +03:00
parent a33db4f03b
commit d6f8e4328c

View File

@ -84,5 +84,7 @@ void setThreadName(const std::string &name)
#elif defined(__linux__)
prctl(PR_SET_NAME, name.c_str(), 0, 0, 0);
#elif defined(VCMI_APPLE)
pthread_setname_np(name.c_str());
#endif
}