diff options
author | 2017-10-31 11:24:36 -0700 | |
---|---|---|
committer | 2017-10-31 11:24:36 -0700 | |
commit | 888691344ea8d42c6ab1f501f7ad71d2e503d844 (patch) | |
tree | 8eb630dbcc65cf74550bf61dd0307b0e669c86dc /test/core/util/passthru_endpoint.cc | |
parent | 77532036b65bc3130c232effb882dc99c302a64a (diff) | |
parent | 3e0769957ef310535526647f048e2e003a371a6b (diff) |
Merge branch 'master' into testc++ize
Diffstat (limited to 'test/core/util/passthru_endpoint.cc')
-rw-r--r-- | test/core/util/passthru_endpoint.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/util/passthru_endpoint.cc b/test/core/util/passthru_endpoint.cc index 1bf2888503..ed39255294 100644 --- a/test/core/util/passthru_endpoint.cc +++ b/test/core/util/passthru_endpoint.cc @@ -82,7 +82,7 @@ static void me_write(grpc_exec_ctx *exec_ctx, grpc_endpoint *ep, half *m = other_half((half *)ep); gpr_mu_lock(&m->parent->mu); grpc_error *error = GRPC_ERROR_NONE; - m->parent->stats->num_writes++; + gpr_atm_no_barrier_fetch_add(&m->parent->stats->num_writes, (gpr_atm)1); if (m->parent->shutdown) { error = GRPC_ERROR_CREATE_FROM_STATIC_STRING("Endpoint already shutdown"); } else if (m->on_read != NULL) { |