Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvdp-pesi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
uplex-varnish
libvdp-pesi
Commits
fe011fac
Unverified
Commit
fe011fac
authored
Jan 28, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Factor out waiting for a subreq
parent
39fe0933
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
node.c
src/node.c
+14
-8
No files found.
src/node.c
View file @
fe011fac
...
...
@@ -566,6 +566,17 @@ subreq_fixup(struct node *node, struct req *req)
return
(
subreq
);
}
static
void
subreq_wait_done
(
struct
node
*
node
)
{
Lck_Lock
(
node
->
subreq
.
shared_lock
);
if
(
node
->
subreq
.
done
==
0
)
AZ
(
Lck_CondWait
(
&
node
->
subreq
.
cond
,
node
->
subreq
.
shared_lock
));
Lck_Unlock
(
node
->
subreq
.
shared_lock
);
}
/* ------------------------------------------------------------
* node cleanup (not holding tree lock)
*
...
...
@@ -714,14 +725,9 @@ push_subreq(struct req *req, struct bytes_tree *tree,
assert
(
node
->
type
==
T_SUBREQ
);
(
void
)
next
;
if
(
node
->
subreq
.
done
==
0
)
{
Lck_Lock
(
node
->
subreq
.
shared_lock
);
if
(
node
->
subreq
.
done
==
0
)
AZ
(
Lck_CondWait
(
&
node
->
subreq
.
cond
,
node
->
subreq
.
shared_lock
));
Lck_Unlock
(
node
->
subreq
.
shared_lock
);
}
subreq_wait_done
(
node
);
AN
(
node
->
subreq
.
done
);
subreq
=
subreq_fixup
(
node
,
req
);
...
...
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