thread-mq: Make pa_thread_mq_done more robust

System Internals / PulseAudio - David Henningsson [canonical.com] - 27 March 2015 08:34 UTC

While investigating bug 89672 it was found that pa_thread_mq_done was called recursively. Regardless of whether the recursion should be stopped by other means, it seems to make sense to make pa_thread_mq_done more robust so that it can be called twice (and even recursively) without harm.

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=89672

4986899 thread-mq: Make pa_thread_mq_done more robust
src/pulsecore/thread-mq.c | 32 +++++++++++++++++++++++---------
1 file changed, 23 insertions(+), 9 deletions(-)

Upstream: cgit.freedesktop.org


  • Share