Skip to content
Snippets Groups Projects
Commit dad3655a authored by Anthony J. Bentley's avatar Anthony J. Bentley
Browse files

Use pthread_set_name_np() on OpenBSD.

parent d0c17948
No related branches found
No related tags found
No related merge requests found
......@@ -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);
#else
pthread_setname_np(pthread_self(), szThreadName);
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment