diff options
author | Vijay Pai <vpai@google.com> | 2017-12-05 19:00:11 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-05 19:00:11 -0800 |
commit | 9dbb6e3a28ae9c5ed3c97913c4c363b15eb7b2cc (patch) | |
tree | 6a657f8c6179d873b34505cdc24bce9462ca68eb /include/grpc/impl | |
parent | 08aa228771c639a20e45e47120e1c667d8ac7344 (diff) | |
parent | 30ccc944d659a9314f717c9fff582d917420656a (diff) |
Merge pull request #13559 from dmaclach/threadnames
Add thread naming support on platforms that support it.
Diffstat (limited to 'include/grpc/impl')
-rw-r--r-- | include/grpc/impl/codegen/port_platform.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/grpc/impl/codegen/port_platform.h b/include/grpc/impl/codegen/port_platform.h index 1906886d5e..5a0ed85111 100644 --- a/include/grpc/impl/codegen/port_platform.h +++ b/include/grpc/impl/codegen/port_platform.h @@ -173,6 +173,7 @@ #endif /* _LP64 */ #ifdef __GLIBC__ #define GPR_POSIX_CRASH_HANDLER 1 +#define GPR_LINUX_PTHREAD_NAME 1 #else /* musl libc */ #define GPR_MUSL_LIBC_COMPAT 1 #endif @@ -195,6 +196,7 @@ #else /* __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_7 */ #define GPR_CPU_POSIX 1 #define GPR_GCC_TLS 1 +#define GPR_APPLE_PTHREAD_NAME 1 #endif #else /* __MAC_OS_X_VERSION_MIN_REQUIRED */ #define GPR_CPU_POSIX 1 |