From f92b5300680dac5b9bd68e4b821edda3b5166822 Mon Sep 17 00:00:00 2001 From: Vijay Pai Date: Mon, 30 Oct 2017 15:10:23 -0700 Subject: Fix a data race in microbenchmark stats gathering --- test/core/util/passthru_endpoint.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/core/util/passthru_endpoint.h') diff --git a/test/core/util/passthru_endpoint.h b/test/core/util/passthru_endpoint.h index da769024a5..23d21c6061 100644 --- a/test/core/util/passthru_endpoint.h +++ b/test/core/util/passthru_endpoint.h @@ -19,9 +19,11 @@ #ifndef MOCK_ENDPOINT_H #define MOCK_ENDPOINT_H +#include + #include "src/core/lib/iomgr/endpoint.h" -typedef struct { int num_writes; } grpc_passthru_endpoint_stats; +typedef struct { gpr_atm num_writes; } grpc_passthru_endpoint_stats; void grpc_passthru_endpoint_create(grpc_endpoint **client, grpc_endpoint **server, -- cgit v1.2.3