Skip to content
Snippets Groups Projects
Commit 0846ceef authored by Tim-Philipp Müller's avatar Tim-Philipp Müller :tropical_fish:
Browse files

appsink: don't signal the GCond if no one is waiting on it

Performance optimisation: Keep track whenever the streaming
thread or the application thread are waiting on the GCond
for more space or new data, and only signal on the GCond if
someone is actually waiting. Avoids unnecessary syscalls and
thus context switches.
parent 8b22d470
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment