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
65dd99fe
Commit
65dd99fe
authored
Jul 6, 2017
by
Sree Kuchibhotla
Browse files
Options
Downloads
Patches
Plain Diff
fix typos identified in code review
parent
55acb7c1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/lib/iomgr/timer_manager.c
+3
-3
3 additions, 3 deletions
src/core/lib/iomgr/timer_manager.c
with
3 additions
and
3 deletions
src/core/lib/iomgr/timer_manager.c
+
3
−
3
View file @
65dd99fe
...
@@ -51,7 +51,7 @@ static bool g_kicked;
...
@@ -51,7 +51,7 @@ static bool g_kicked;
// is there a thread waiting until the next timer should fire?
// is there a thread waiting until the next timer should fire?
static
bool
g_has_timed_waiter
;
static
bool
g_has_timed_waiter
;
// the deadline of the current timed waiter thread (only relevant if
// the deadline of the current timed waiter thread (only relevant if
// g_has_timed_wa
t
ier is true)
// g_has_timed_wai
t
er is true)
static
gpr_timespec
g_timed_waiter_deadline
;
static
gpr_timespec
g_timed_waiter_deadline
;
// generation counter to track which thread is waiting for the next timer
// generation counter to track which thread is waiting for the next timer
static
uint64_t
g_timed_waiter_generation
;
static
uint64_t
g_timed_waiter_generation
;
...
@@ -137,7 +137,7 @@ static bool wait_until(gpr_timespec next) {
...
@@ -137,7 +137,7 @@ static bool wait_until(gpr_timespec next) {
// If g_kicked is true at this point, it means there was a kick from the timer
// If g_kicked is true at this point, it means there was a kick from the timer
// system that the timer-manager threads here missed. We cannot trust 'next'
// system that the timer-manager threads here missed. We cannot trust 'next'
// here any longer (since there might be an ear
i
ler deadline). So if g_kicked
// here any longer (since there might be an earl
i
er deadline). So if g_kicked
// is true at this point, we should quickly exit this and get the next
// is true at this point, we should quickly exit this and get the next
// deadline from the timer system
// deadline from the timer system
...
@@ -146,7 +146,7 @@ static bool wait_until(gpr_timespec next) {
...
@@ -146,7 +146,7 @@ static bool wait_until(gpr_timespec next) {
// only until the next timer should expire. All other timers wait forever
// only until the next timer should expire. All other timers wait forever
//
//
// 'g_timed_waiter_generation' is a global generation counter. The idea here
// 'g_timed_waiter_generation' is a global generation counter. The idea here
// is that the thread becoming a timed-waiter icrements and stores this
// is that the thread becoming a timed-waiter i
n
crements and stores this
// global counter locally in 'my_timed_waiter_generation' before going to
// global counter locally in 'my_timed_waiter_generation' before going to
// sleep. After waking up, if my_timed_waiter_generation ==
// sleep. After waking up, if my_timed_waiter_generation ==
// g_timed_waiter_generation, it can be sure that it was the timed_waiter
// g_timed_waiter_generation, it can be sure that it was the timed_waiter
...
...
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