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:
parent
a33db4f03b
commit
d6f8e4328c
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user