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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
2c3d835d
Commit
2c3d835d
authored
7 years ago
by
Craig Tiller
Browse files
Options
Downloads
Patches
Plain Diff
Implement gpr_atm_full_cas for Windows
parent
3569a76d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/grpc/impl/codegen/atm_windows.h
+10
-0
10 additions, 0 deletions
include/grpc/impl/codegen/atm_windows.h
with
10 additions
and
0 deletions
include/grpc/impl/codegen/atm_windows.h
+
10
−
0
View file @
2c3d835d
...
@@ -95,6 +95,16 @@ static __inline int gpr_atm_rel_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
...
@@ -95,6 +95,16 @@ static __inline int gpr_atm_rel_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
#endif
#endif
}
}
static
__inline
int
gpr_atm_full_cas
(
gpr_atm
*
p
,
gpr_atm
o
,
gpr_atm
n
)
{
#ifdef GPR_ARCH_64
return
o
==
(
gpr_atm
)
InterlockedCompareExchange64
((
volatile
LONGLONG
*
)
p
,
(
LONGLONG
)
n
,
(
LONGLONG
)
o
);
#else
return
o
==
(
gpr_atm
)
InterlockedCompareExchange
((
volatile
LONG
*
)
p
,
(
LONG
)
n
,
(
LONG
)
o
);
#endif
}
static
__inline
gpr_atm
gpr_atm_no_barrier_fetch_add
(
gpr_atm
*
p
,
static
__inline
gpr_atm
gpr_atm_no_barrier_fetch_add
(
gpr_atm
*
p
,
gpr_atm
delta
)
{
gpr_atm
delta
)
{
/* Use the CAS operation to get pointer-sized fetch and add */
/* Use the CAS operation to get pointer-sized fetch and add */
...
...
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
register
or
sign in
to comment