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
18eee95d
Commit
18eee95d
authored
Apr 28, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try disabling PTHREAD_MUTEX_ERRORCHECK on __APPLE__ platforms.
parent
562909b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
cache_lck.c
bin/varnishd/cache/cache_lck.c
+3
-2
No files found.
bin/varnishd/cache/cache_lck.c
View file @
18eee95d
...
@@ -55,8 +55,7 @@ struct ilck {
...
@@ -55,8 +55,7 @@ struct ilck {
static
pthread_mutexattr_t
attr
;
static
pthread_mutexattr_t
attr
;
static
VTAILQ_HEAD
(,
ilck
)
ilck_head
=
static
VTAILQ_HEAD
(,
ilck
)
ilck_head
=
VTAILQ_HEAD_INITIALIZER
(
ilck_head
);
VTAILQ_HEAD_INITIALIZER
(
ilck_head
);
static
pthread_mutex_t
lck_mtx
;
static
pthread_mutex_t
lck_mtx
;
...
@@ -210,7 +209,9 @@ LCK_Init(void)
...
@@ -210,7 +209,9 @@ LCK_Init(void)
{
{
AZ
(
pthread_mutexattr_init
(
&
attr
));
AZ
(
pthread_mutexattr_init
(
&
attr
));
#if !defined(__APPLE__)
AZ
(
pthread_mutexattr_settype
(
&
attr
,
PTHREAD_MUTEX_ERRORCHECK
));
AZ
(
pthread_mutexattr_settype
(
&
attr
,
PTHREAD_MUTEX_ERRORCHECK
));
#endif
AZ
(
pthread_mutex_init
(
&
lck_mtx
,
&
attr
));
AZ
(
pthread_mutex_init
(
&
lck_mtx
,
&
attr
));
#define LOCK(nam) \
#define LOCK(nam) \
lck_##nam = VSM_Alloc(sizeof(struct VSC_C_lck), \
lck_##nam = VSM_Alloc(sizeof(struct VSC_C_lck), \
...
...
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