diff options
author | Craig Tiller <ctiller@google.com> | 2017-09-06 09:22:39 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-09-06 09:22:39 -0700 |
commit | b675e0a0af91752492c9e981f5745f666631e1c9 (patch) | |
tree | 241ea36040c454acaa28d66865e170f2a0b0984d /include/grpc/impl/codegen/port_platform.h | |
parent | a82b6dbac8a0ca3dd9892392cd86a40872ef3714 (diff) |
Annotate benign race
Diffstat (limited to 'include/grpc/impl/codegen/port_platform.h')
-rw-r--r-- | include/grpc/impl/codegen/port_platform.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/grpc/impl/codegen/port_platform.h b/include/grpc/impl/codegen/port_platform.h index e84a75d295..5bbab70c6a 100644 --- a/include/grpc/impl/codegen/port_platform.h +++ b/include/grpc/impl/codegen/port_platform.h @@ -409,4 +409,10 @@ typedef unsigned __int64 uint64_t; #define CENSUSAPI GRPCAPI #endif +#if defined(__has_feature) +#if __has_feature(thread_sanitizer) +#define GPR_ATTRIBUTE_NO_TSAN __attribute__((no_sanitize("thread"))) +#endif +#endif + #endif /* GRPC_IMPL_CODEGEN_PORT_PLATFORM_H */ |