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
c758542d
Commit
c758542d
authored
8 years ago
by
Craig Tiller
Browse files
Options
Downloads
Patches
Plain Diff
Fix compile
parent
edbf2b9d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/lib/iomgr/timer_generic.c
+1
-1
1 addition, 1 deletion
src/core/lib/iomgr/timer_generic.c
src/core/lib/support/spinlock.h
+2
-0
2 additions, 0 deletions
src/core/lib/support/spinlock.h
with
3 additions
and
1 deletion
src/core/lib/iomgr/timer_generic.c
+
1
−
1
View file @
c758542d
...
@@ -70,7 +70,7 @@ typedef struct {
...
@@ -70,7 +70,7 @@ typedef struct {
/* Protects g_shard_queue */
/* Protects g_shard_queue */
static
gpr_mu
g_mu
;
static
gpr_mu
g_mu
;
/* Allow only one run_some_expired_timers at once */
/* Allow only one run_some_expired_timers at once */
static
gpr_spinlock
g_checker_mu
=
GPR_SPINLOCK_INITIALIZER
;
static
gpr_spinlock
g_checker_mu
=
GPR_SPINLOCK_
STATIC_
INITIALIZER
;
static
gpr_clock_type
g_clock_type
;
static
gpr_clock_type
g_clock_type
;
static
shard_type
g_shards
[
NUM_SHARDS
];
static
shard_type
g_shards
[
NUM_SHARDS
];
/* Protected by g_mu */
/* Protected by g_mu */
...
...
This diff is collapsed.
Click to expand it.
src/core/lib/support/spinlock.h
+
2
−
0
View file @
c758542d
...
@@ -41,6 +41,8 @@
...
@@ -41,6 +41,8 @@
typedef
struct
{
gpr_atm
atm
;
}
gpr_spinlock
;
typedef
struct
{
gpr_atm
atm
;
}
gpr_spinlock
;
#define GPR_SPINLOCK_INITIALIZER ((gpr_spinlock){0})
#define GPR_SPINLOCK_INITIALIZER ((gpr_spinlock){0})
#define GPR_SPINLOCK_STATIC_INITIALIZER \
{ 0 }
#define gpr_spinlock_trylock(lock) (gpr_atm_acq_cas(&(lock)->atm, 0, 1))
#define gpr_spinlock_trylock(lock) (gpr_atm_acq_cas(&(lock)->atm, 0, 1))
#define gpr_spinlock_unlock(lock) (gpr_atm_rel_store(&(lock)->atm, 0))
#define gpr_spinlock_unlock(lock) (gpr_atm_rel_store(&(lock)->atm, 0))
#define gpr_spinlock_lock(lock) \
#define gpr_spinlock_lock(lock) \
...
...
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