fix: macos: pthread_setname_np is different
Dieser Commit ist enthalten in:
Ursprung
b7344c2b98
Commit
874e9eeac6
@ -33,7 +33,11 @@ inline void setThreadName(const char* name)
|
||||
{
|
||||
#if __has_include(<pthread.h>)
|
||||
if constexpr(std::is_same_v<std::thread::native_handle_type, pthread_t>)
|
||||
#ifdef __APPLE__
|
||||
pthread_setname_np(name);
|
||||
#else
|
||||
pthread_setname_np(pthread_self(), name);
|
||||
#endif
|
||||
#endif
|
||||
#ifdef WIN32
|
||||
// TODO:
|
||||
|
||||
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren