Skip to content
Snippets Groups Projects
Commit afbae1f5 authored by Craig Tiller's avatar Craig Tiller
Browse files

Fix mutex

parent 8a03448a
No related branches found
No related tags found
No related merge requests found
......@@ -329,6 +329,7 @@ static grpc_fd *alloc_fd(int fd) {
gpr_mu_init(&r->mu);
}
gpr_mu_lock(&r->mu);
gpr_atm_rel_store(&r->refst, 1);
r->shutdown = 0;
r->read_closure = CLOSURE_NOT_READY;
......@@ -341,6 +342,7 @@ static grpc_fd *alloc_fd(int fd) {
r->on_done_closure = NULL;
r->closed = 0;
r->released = 0;
gpr_mu_unlock(&r->mu);
return r;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment