Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
timeout.c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
timeout.c
Commits
bed23e4a
Commit
bed23e4a
authored
Dec 13, 2013
by
william
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some comments
parent
9f7599c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
timer.c
timer.c
+4
-3
No files found.
timer.c
View file @
bed23e4a
...
...
@@ -431,8 +431,8 @@ static timeout_t tms__timeout(struct timeouts *T) {
/*
*
Provide a minimum timeout for our caller. If anything is pending on
*
the expiration queue return 0, beca
*
Calculate a timeout that our caller can wait before updating and
*
processing the wheel.
*/
timeout_t
timeouts_timeout
(
struct
timeouts
*
T
)
{
if
(
!
CIRCLEQ_EMPTY
(
&
T
->
expired
))
...
...
@@ -458,7 +458,8 @@ struct timeout *timeouts_get(struct timeouts *T) {
/*
* Use dumb looping to locate the earliest timeout pending on the wheel.
* Use dumb looping to locate the earliest timeout pending on the wheel so
* our invariant assertions can check the result of our optimized code.
*/
static
struct
timeout
*
tms__min
(
struct
timeouts
*
T
)
{
struct
timeout
*
to
,
*
min
=
NULL
;
...
...
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