Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
f16b52cb
Unverified
Commit
f16b52cb
authored
Nov 23, 2020
by
David CARLIER
Committed by
GitHub
Nov 23, 2020
Browse files
redis_set_thread_title support for Haiku. (#8060)
parent
0963edbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/config.h
View file @
f16b52cb
...
@@ -241,6 +241,9 @@ void setproctitle(const char *fmt, ...);
...
@@ -241,6 +241,9 @@ void setproctitle(const char *fmt, ...);
#elif defined __NetBSD__
#elif defined __NetBSD__
#include <pthread.h>
#include <pthread.h>
#define redis_set_thread_title(name) pthread_setname_np(pthread_self(), "%s", name)
#define redis_set_thread_title(name) pthread_setname_np(pthread_self(), "%s", name)
#elif defined __HAIKU__
#include <kernel/OS.h>
#define redis_set_thread_title(name) rename_thread(find_thread(0), name)
#else
#else
#if (defined __APPLE__ && defined(MAC_OS_X_VERSION_10_7))
#if (defined __APPLE__ && defined(MAC_OS_X_VERSION_10_7))
int
pthread_setname_np
(
const
char
*
name
);
int
pthread_setname_np
(
const
char
*
name
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment