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
871da25b
Commit
871da25b
authored
Jul 29, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename pesi_finish() -> task_fini()
I always got confused about this myself, so the name was probably bad
parent
b581c6da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
vdp_pesi.c
src/vdp_pesi.c
+7
-7
No files found.
src/vdp_pesi.c
View file @
871da25b
...
...
@@ -346,7 +346,7 @@ pesi_new(struct ws *ws, struct pesi_tree *pesi_tree)
* For possible debuggung purposes, we record the fact that a pesi request is
* finishing
*
* - in ved_task(), we call
pesi_finish
() to decrement the global counter and
* - in ved_task(), we call
task_fini
() to decrement the global counter and
* notify the top request
*
* for esi_level == 0, all cleanup happens in vdp_pesi_fini
...
...
@@ -367,7 +367,7 @@ pesi_destroy(struct pesi **pesip)
/*
* next assert is only true because the topreq happens to call
* pesi_destroy() after
pesi_finish
()
* pesi_destroy() after
task_fini
()
*/
assert
(
pesi_tree
->
task_running
>
0
);
...
...
@@ -380,7 +380,7 @@ pesi_destroy(struct pesi **pesip)
static
void
pesi_finish
(
struct
pesi_tree
*
pesi_tree
,
struct
pesi
*
pesi
)
task_fini
(
struct
pesi_tree
*
pesi_tree
,
struct
pesi
*
pesi
)
{
Lck_Lock
(
&
pesi_tree
->
task_lock
);
assert
(
pesi_tree
->
task_running
>
0
);
...
...
@@ -834,11 +834,11 @@ ved_task(struct worker *wrk, void *priv)
assert
(
pesi
==
req
->
transport_priv
);
req
->
transport_priv
=
NULL
;
pesi_destroy
(
&
pesi
);
pesi_finish
(
pesi_tree
,
pesi
);
task_fini
(
pesi_tree
,
pesi
);
break
;
case
T_SUBREQ
:
assert
(
node
->
type
==
T_SUBREQ
);
pesi_finish
(
pesi_tree
,
req
->
transport_priv
);
task_fini
(
pesi_tree
,
req
->
transport_priv
);
// XXX MAKE EFFICIENT
// WOULD BE BETTER TO ONLY INSERT NODE WHEN READY
Lck_Lock
(
&
pesi_tree
->
tree
->
tree_lock
);
...
...
@@ -849,7 +849,7 @@ ved_task(struct worker *wrk, void *priv)
default:
req_fini
(
req
,
wrk
);
pesi
=
NULL
;
pesi_finish
(
pesi_tree
,
req
->
transport_priv
);
task_fini
(
pesi_tree
,
req
->
transport_priv
);
}
wrk
->
task
.
func
=
NULL
;
...
...
@@ -2067,7 +2067,7 @@ vdp_pesi_fini(struct req *req, void **priv)
assert
(
bytes_tree
==
pesi_tree
->
tree
);
pesi_destroy
(
&
pesi
);
pesi_finish
(
pesi_tree
,
pesi
);
task_fini
(
pesi_tree
,
pesi
);
/*
* ensure that all tasks are done
...
...
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