Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
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
unique-xids
Commits
83387b8b
Commit
83387b8b
authored
Aug 22, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize pthreads stuff before we use it.
Spotted by: OSX pthread implementation
parent
07d9e57d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
cache_pool.c
bin/varnishd/cache/cache_pool.c
+2
-3
No files found.
bin/varnishd/cache/cache_pool.c
View file @
83387b8b
...
@@ -418,6 +418,8 @@ pool_mkpool(unsigned pool_no)
...
@@ -418,6 +418,8 @@ pool_mkpool(unsigned pool_no)
VTAILQ_INIT
(
&
pp
->
back_queue
);
VTAILQ_INIT
(
&
pp
->
back_queue
);
pp
->
sesspool
=
SES_NewPool
(
pp
,
pool_no
);
pp
->
sesspool
=
SES_NewPool
(
pp
,
pool_no
);
AN
(
pp
->
sesspool
);
AN
(
pp
->
sesspool
);
AZ
(
pthread_cond_init
(
&
pp
->
herder_cond
,
NULL
));
AZ
(
pthread_create
(
&
pp
->
herder_thr
,
NULL
,
pool_herder
,
pp
));
VTAILQ_FOREACH
(
ls
,
&
heritage
.
socks
,
list
)
{
VTAILQ_FOREACH
(
ls
,
&
heritage
.
socks
,
list
)
{
if
(
ls
->
sock
<
0
)
if
(
ls
->
sock
<
0
)
...
@@ -430,9 +432,6 @@ pool_mkpool(unsigned pool_no)
...
@@ -430,9 +432,6 @@ pool_mkpool(unsigned pool_no)
AZ
(
Pool_Task
(
pp
,
&
ps
->
task
,
POOL_QUEUE_BACK
));
AZ
(
Pool_Task
(
pp
,
&
ps
->
task
,
POOL_QUEUE_BACK
));
}
}
AZ
(
pthread_cond_init
(
&
pp
->
herder_cond
,
NULL
));
AZ
(
pthread_create
(
&
pp
->
herder_thr
,
NULL
,
pool_herder
,
pp
));
return
(
pp
);
return
(
pp
);
}
}
...
...
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