Skip to content
Snippets Groups Projects
Commit d2e66a97 authored by deuce's avatar deuce
Browse files

Include thread names for release builds too.

parent 8d18b896
No related branches found
No related tags found
No related merge requests found
......@@ -99,17 +99,13 @@ pthread_mutex_t pthread_mutex_initializer_np(BOOL recursive);
#if defined(_POSIX_THREADS)
#ifdef _DEBUG
#if defined (__FreeBSD__) || defined (__OpenBSD__)
#include <pthread_np.h>
#define SetThreadName(c) pthread_set_name_np(pthread_self(),c)
#elsif defined(__GLIBC__)
#include <features.h>
#if (__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12))
#define SetThreadName(c) pthread_setname_np(pthread_self(),c)
#endif
#else
#define SetThreadName(c)
#if defined (__FreeBSD__) || defined (__OpenBSD__)
#include <pthread_np.h>
#define SetThreadName(c) pthread_set_name_np(pthread_self(),c)
#elsif defined(__GLIBC__)
#include <features.h>
#if (__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12))
#define SetThreadName(c) pthread_setname_np(pthread_self(),c)
#endif
#else
#define SetThreadName(c)
......
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