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:49:02 -0700 |
commit | 6869da4d658bf3e6631a8773e4b8ae315fcfec0e (patch) | |
tree | b46cfdcaeba2971cf31e21161f481b9673751029 /include | |
parent | e1101cf09925d23b491c895e2bcf4bae01857504 (diff) |
Annotate benign race
Diffstat (limited to 'include')
-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 */ |