aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/surface/call.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-03-08 16:10:56 -0800
committerGravatar Craig Tiller <ctiller@google.com>2017-03-08 16:10:56 -0800
commit676db291d2387603f795dd6bd5853188e0ff7f63 (patch)
tree7fe62fa8ae55d885acbf0021271daf14c1cb0127 /src/core/lib/surface/call.c
parente0341792d5a33469bbac481e9737bd00e3cb8900 (diff)
Fix barriers
Diffstat (limited to 'src/core/lib/surface/call.c')
-rw-r--r--src/core/lib/surface/call.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/surface/call.c b/src/core/lib/surface/call.c
index 9b01c46bd5..2f3ddd6bcb 100644
--- a/src/core/lib/surface/call.c
+++ b/src/core/lib/surface/call.c
@@ -315,7 +315,7 @@ grpc_error *grpc_call_create(grpc_exec_ctx *exec_ctx,
GPR_ASSERT(!args->parent_call->is_client);
gpr_mu_lock(&args->parent_call->child_list_mu);
- gpr_atm_no_barrier_store(&args->parent_call->has_children, 1);
+ gpr_atm_rel_store(&args->parent_call->has_children, 1);
if (args->propagation_mask & GRPC_PROPAGATE_DEADLINE) {
send_deadline = gpr_time_min(
@@ -1095,7 +1095,7 @@ static void post_batch_completion(grpc_exec_ctx *exec_ctx,
call->received_final_op = true;
/* propagate cancellation to any interested children */
- if (gpr_atm_no_barrier_load(&call->has_children)) {
+ if (gpr_atm_acq_load(&call->has_children)) {
gpr_mu_lock(&call->child_list_mu);
child_call = call->first_child;
if (child_call != NULL) {