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
0dd8b32b
Commit
0dd8b32b
authored
Feb 22, 2021
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use PTHREAD_NULL if the platform has it.
Spotted by: Rasmus Villemoes
parent
6cbd4c85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
cache_lck.c
bin/varnishd/cache/cache_lck.c
+4
-0
No files found.
bin/varnishd/cache/cache_lck.c
View file @
0dd8b32b
...
...
@@ -154,7 +154,11 @@ Lck__Unlock(struct lock *lck, const char *p, int l)
* implementations of pthread.
* #endif
*/
#ifdef PTHREAD_NULL
ilck
->
owner
=
PTHREAD_NULL
;
#else
memset
(
&
ilck
->
owner
,
0
,
sizeof
ilck
->
owner
);
#endif
AZ
(
pthread_mutex_unlock
(
&
ilck
->
mtx
));
if
(
DO_DEBUG
(
DBG_WITNESS
))
Lck_Witness_Unlock
(
ilck
);
...
...
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