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
0144ddc7
Commit
0144ddc7
authored
Jun 14, 2020
by
LorinLee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
timer_thread: remove redundant code
parent
83635bfd
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 @
0144ddc7
...
@@ -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