Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
varnishevent
Commits
d49c4ab0
Commit
d49c4ab0
authored
Apr 14, 2015
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get rid of the data_ready mutex and condition variable
parent
77977702
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
9 deletions
+0
-9
varnishevent.c
src/varnishevent.c
+0
-4
varnishevent.h
src/varnishevent.h
+0
-5
No files found.
src/varnishevent.c
View file @
d49c4ab0
...
...
@@ -622,8 +622,6 @@ main(int argc, char *argv[])
exit
(
EXIT_FAILURE
);
}
AZ
(
pthread_cond_init
(
&
data_ready_cond
,
NULL
));
AZ
(
pthread_mutex_init
(
&
data_ready_lock
,
NULL
));
AZ
(
pthread_cond_init
(
&
spscq_ready_cond
,
NULL
));
AZ
(
pthread_mutex_init
(
&
spscq_ready_lock
,
NULL
));
...
...
@@ -725,8 +723,6 @@ main(int argc, char *argv[])
SPSCQ_Shutdown
();
MON_Shutdown
();
FMT_Fini
();
AZ
(
pthread_cond_destroy
(
&
data_ready_cond
));
AZ
(
pthread_mutex_destroy
(
&
data_ready_lock
));
AZ
(
pthread_cond_destroy
(
&
spscq_ready_cond
));
AZ
(
pthread_mutex_destroy
(
&
spscq_ready_lock
));
LOG_Log0
(
LOG_INFO
,
"Exiting"
);
...
...
src/varnishevent.h
View file @
d49c4ab0
...
...
@@ -152,11 +152,6 @@ VSTAILQ_HEAD(freehead_s, logline_t);
unsigned
global_nfree_tx
,
global_nfree_line
,
global_nfree_chunk
;
/* Reader waits for this condition when the freelist is exhausted.
Writer signals the condition after returning space to the freelist. */
pthread_cond_t
data_ready_cond
;
pthread_mutex_t
data_ready_lock
;
/* Writer (consumer) waits for this condition when the SPSC queue is empty.
Reader (producer) signals the condition after enqueue. */
pthread_cond_t
spscq_ready_cond
;
...
...
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