VERY experimental Nintendo Switch 2 emulator
C++
Use pthread_set_name_np() on OpenBSD.
Anthony J. Bentleydad3655a6d63
diff --git a/src/common/thread.cpp b/src/common/thread.cppindex c70ee37cf8..7341035c2d 100644--- a/src/common/thread.cpp+++ b/src/common/thread.cpp@@ -7,7 +7,7 @@#ifdef __APPLE__#include <mach/mach.h>-#elif defined BSD4_4+#elif defined(BSD4_4) || defined(__OpenBSD__)#include <pthread_np.h>#endif@@ -123,6 +123,8 @@ void SetCurrentThreadName(const char* szThreadName){#ifdef __APPLE__pthread_setname_np(szThreadName);+#elif defined(__OpenBSD__)+ pthread_set_name_np(pthread_self(), szThreadName);#elsepthread_setname_np(pthread_self(), szThreadName);#endif