Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-tus
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-tus
Commits
945e754f
Unverified
Commit
945e754f
authored
Jan 05, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create a varnish lock class
parent
e1162cdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
vmod_tus.c
src/vmod_tus.c
+10
-0
No files found.
src/vmod_tus.c
View file @
945e754f
...
...
@@ -48,7 +48,13 @@
#include "tus_blob.h"
#include "tus_file_exp_setup.h"
/* ============================================================
* vmod shared object globals
*/
static
unsigned
refcnt
=
0
;
static
struct
vsc_seg
*
vsc_seg_lck
=
NULL
;
struct
VSC_lck
*
lck_fcore
=
NULL
;
/* ============================================================
* vmod init/fini
...
...
@@ -62,6 +68,9 @@ tus_init(VRT_CTX, struct vmod_priv *priv)
if
(
refcnt
++
>
0
)
return
(
0
);
AZ
(
vsc_seg_lck
);
lck_fcore
=
Lck_CreateClass
(
&
vsc_seg_lck
,
"tus.fcore"
);
AN
(
lck_fcore
);
tus_file_init
();
return
(
tus_chksum_init
(
ctx
));
}
...
...
@@ -75,6 +84,7 @@ tus_fini(VRT_CTX, struct vmod_priv *priv)
if
(
refcnt
>
0
)
return
(
0
);
Lck_DestroyClass
(
&
vsc_seg_lck
);
return
(
tus_chksum_fini
(
ctx
));
}
...
...
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