Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
cf00dd2e
Commit
cf00dd2e
authored
Oct 13, 2021
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VTIM usage polish
parent
a3ff9258
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
cache_lck.c
bin/varnishd/cache/cache_lck.c
+1
-3
cache_http2_session.c
bin/varnishd/http2/cache_http2_session.c
+0
-1
No files found.
bin/varnishd/cache/cache_lck.c
View file @
cf00dd2e
...
@@ -228,7 +228,6 @@ Lck_CondWaitUntil(pthread_cond_t *cond, struct lock *lck, vtim_real when)
...
@@ -228,7 +228,6 @@ Lck_CondWaitUntil(pthread_cond_t *cond, struct lock *lck, vtim_real when)
{
{
struct
ilck
*
ilck
;
struct
ilck
*
ilck
;
struct
timespec
ts
;
struct
timespec
ts
;
vtim_real
t
;
AN
(
lck
);
AN
(
lck
);
CAST_OBJ_NOTNULL
(
ilck
,
lck
->
priv
,
ILCK_MAGIC
);
CAST_OBJ_NOTNULL
(
ilck
,
lck
->
priv
,
ILCK_MAGIC
);
...
@@ -240,8 +239,7 @@ Lck_CondWaitUntil(pthread_cond_t *cond, struct lock *lck, vtim_real when)
...
@@ -240,8 +239,7 @@ Lck_CondWaitUntil(pthread_cond_t *cond, struct lock *lck, vtim_real when)
AZ
(
errno
);
AZ
(
errno
);
}
else
{
}
else
{
assert
(
when
>
1e9
);
assert
(
when
>
1e9
);
ts
.
tv_nsec
=
(
long
)(
modf
(
when
,
&
t
)
*
1e9
);
ts
=
VTIM_timespec
(
when
);
ts
.
tv_sec
=
(
long
)
t
;
assert
(
ts
.
tv_nsec
>=
0
&&
ts
.
tv_nsec
<=
999999999
);
assert
(
ts
.
tv_nsec
>=
0
&&
ts
.
tv_nsec
<=
999999999
);
errno
=
pthread_cond_timedwait
(
cond
,
&
ilck
->
mtx
,
&
ts
);
errno
=
pthread_cond_timedwait
(
cond
,
&
ilck
->
mtx
,
&
ts
);
#if defined (__APPLE__)
#if defined (__APPLE__)
...
...
bin/varnishd/http2/cache_http2_session.c
View file @
cf00dd2e
...
@@ -39,7 +39,6 @@
...
@@ -39,7 +39,6 @@
#include "http2/cache_http2.h"
#include "http2/cache_http2.h"
#include "vend.h"
#include "vend.h"
#include "vtim.h"
#include "vtcp.h"
#include "vtcp.h"
static
const
char
h2_resp_101
[]
=
static
const
char
h2_resp_101
[]
=
...
...
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