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
917958e3
Commit
917958e3
authored
Dec 13, 2013
by
william
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix timeout calculations comment
parent
7f9cf219
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
timer.c
timer.c
+8
-4
No files found.
timer.c
View file @
917958e3
...
@@ -390,10 +390,14 @@ bool timeouts_expired(struct timeouts *T) {
...
@@ -390,10 +390,14 @@ bool timeouts_expired(struct timeouts *T) {
* (This is separated from the public API routine so we can evaluate our
* (This is separated from the public API routine so we can evaluate our
* wheel invariant assertions irrespective of the expired queue.)
* wheel invariant assertions irrespective of the expired queue.)
*
*
* This might return a timeout value sooner than any installed timeout
* This might return a timeout value sooner than any installed timeout if
* because of our need to handle wheel rollover, and because with each
* only higher-order wheels have timeouts pending. We can only know when to
* higher order wheel we precision in knowing exactly when the next timeout
* process a wheel, not precisely when a timeout is scheduled. Our timeout
* will be.
* accuracy could be off by 2^(N*M)-1 units where N is the wheel number and
* M is WHEEL_BIT. Only timeouts which have fallen through to wheel 0 can be
* known exactly.
*
* We should never return a timeout larger than the lowest actual timeout.
*/
*/
static
timeout_t
tms__timeout
(
struct
timeouts
*
T
)
{
static
timeout_t
tms__timeout
(
struct
timeouts
*
T
)
{
timeout_t
timeout
=
~
TIMEOUT_C
(
0
),
_timeout
;
timeout_t
timeout
=
~
TIMEOUT_C
(
0
),
_timeout
;
...
...
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