DragonFlyBSD thread renaming.
This commit is contained in:
parent
e08886d8a3
commit
7f386d2ff2
@ -7,7 +7,7 @@
|
|||||||
#include "config/bitcoin-config.h"
|
#include "config/bitcoin-config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (defined(__FreeBSD__) || defined(__OpenBSD__))
|
#if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__))
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <pthread_np.h>
|
#include <pthread_np.h>
|
||||||
#endif
|
#endif
|
||||||
@ -712,7 +712,7 @@ void RenameThread(const char* name)
|
|||||||
#if defined(PR_SET_NAME)
|
#if defined(PR_SET_NAME)
|
||||||
// Only the first 15 characters are used (16 - NUL terminator)
|
// Only the first 15 characters are used (16 - NUL terminator)
|
||||||
::prctl(PR_SET_NAME, name, 0, 0, 0);
|
::prctl(PR_SET_NAME, name, 0, 0, 0);
|
||||||
#elif (defined(__FreeBSD__) || defined(__OpenBSD__))
|
#elif (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__))
|
||||||
pthread_set_name_np(pthread_self(), name);
|
pthread_set_name_np(pthread_self(), name);
|
||||||
|
|
||||||
#elif defined(MAC_OSX)
|
#elif defined(MAC_OSX)
|
||||||
|
Loading…
Reference in New Issue
Block a user