Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
e5bd064b
Unverified
Commit
e5bd064b
authored
Jun 15, 2020
by
jamesge
Committed by
GitHub
Jun 15, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1137 from lorinlee/timer
timer_thread: remove redundant code
parents
83635bfd
0144ddc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
timer_thread.cpp
src/bthread/timer_thread.cpp
+1
-3
No files found.
src/bthread/timer_thread.cpp
View file @
e5bd064b
...
@@ -406,9 +406,7 @@ void TimerThread::run() {
...
@@ -406,9 +406,7 @@ void TimerThread::run() {
// The realtime to wait for.
// The realtime to wait for.
int64_t
next_run_time
=
std
::
numeric_limits
<
int64_t
>::
max
();
int64_t
next_run_time
=
std
::
numeric_limits
<
int64_t
>::
max
();
if
(
tasks
.
empty
())
{
if
(
!
tasks
.
empty
())
{
next_run_time
=
std
::
numeric_limits
<
int64_t
>::
max
();
}
else
{
next_run_time
=
tasks
[
0
]
->
run_time
;
next_run_time
=
tasks
[
0
]
->
run_time
;
}
}
// Similarly with the situation before running tasks, we check
// Similarly with the situation before running tasks, we check
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment