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
13cf9280
Commit
13cf9280
authored
Jan 03, 2014
by
william
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
forgot to pass field parameter to TAILQ_CONCAT
parent
d453fc96
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
timeout.c
timeout.c
+6
-5
No files found.
timeout.c
View file @
13cf9280
...
...
@@ -241,18 +241,19 @@ TIMEOUT_PUBLIC struct timeouts *timeouts_open(timeout_t hz, int *error) {
static
void
timeouts_reset
(
struct
timeouts
*
T
)
{
struct
timeout
s
_list
reset
;
struct
timeout_list
reset
;
struct
timeout
*
to
;
unsigned
i
,
j
;
TAILQ_INIT
(
&
reset
);
for
(
unsigned
i
=
0
;
i
<
countof
(
T
->
wheel
);
i
++
)
{
for
(
unsigned
j
=
0
;
j
<
countof
(
T
->
wheel
[
i
]);
j
++
)
{
TAILQ_CONCAT
(
&
reset
,
&
T
->
wheel
[
i
][
j
]);
for
(
i
=
0
;
i
<
countof
(
T
->
wheel
);
i
++
)
{
for
(
j
=
0
;
j
<
countof
(
T
->
wheel
[
i
]);
j
++
)
{
TAILQ_CONCAT
(
&
reset
,
&
T
->
wheel
[
i
][
j
]
,
tqe
);
}
}
TAILQ_CONCAT
(
&
reset
,
&
T
->
expired
);
TAILQ_CONCAT
(
&
reset
,
&
T
->
expired
,
tqe
);
TAILQ_FOREACH
(
to
,
&
reset
,
tqe
)
{
to
->
timeouts
=
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