Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
c212e6cc
Commit
c212e6cc
authored
Mar 30, 2017
by
Craig Tiller
Browse files
Options
Downloads
Patches
Plain Diff
Fix barrier, comment
parent
d51bbeb1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/lib/iomgr/ev_epoll_linux.c
+3
-3
3 additions, 3 deletions
src/core/lib/iomgr/ev_epoll_linux.c
with
3 additions
and
3 deletions
src/core/lib/iomgr/ev_epoll_linux.c
+
3
−
3
View file @
c212e6cc
...
@@ -1173,9 +1173,9 @@ static void set_shutdown(grpc_exec_ctx *exec_ctx, grpc_fd *fd, gpr_atm *state,
...
@@ -1173,9 +1173,9 @@ static void set_shutdown(grpc_exec_ctx *exec_ctx, grpc_fd *fd, gpr_atm *state,
switch
(
curr
)
{
switch
(
curr
)
{
case
CLOSURE_READY
:
case
CLOSURE_READY
:
case
CLOSURE_NOT_READY
:
case
CLOSURE_NOT_READY
:
/*
Release cas to pair with a set_ready performing a load of the
/*
Need a full barrier here so that the initial load in notify_on
shutdown state lat
er */
doesn't need a barri
er */
if
(
gpr_atm_
re
l_cas
(
state
,
curr
,
new_state
))
{
if
(
gpr_atm_
ful
l_cas
(
state
,
curr
,
new_state
))
{
return
;
/* early out */
return
;
/* early out */
}
}
break
;
/* retry */
break
;
/* retry */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment