commit | 4fe51789578e92ca399de3dfaf8c5f5c808f59ae | [log] [tgz] |
---|---|---|
author | Tim-Philipp Müller <tim@centricular.com> | Thu Feb 01 19:25:49 2018 +0000 |
committer | Tim-Philipp Müller <tim@centricular.com> | Mon Feb 19 16:04:22 2018 +0000 |
tree | b5f1f5ef9f88573839304daa481cd866a4879655 | |
parent | 5a5a1f0dc695865c23650ec671382d10dbb18ac0 [diff] |
appsrc: 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.