output/pulse: use a RTTI lock guard

Make all the locks exception-safe.
This commit is contained in:
Max Kellermann
2016-09-09 14:36:24 +02:00
parent 845901ab01
commit 860064c812
5 changed files with 70 additions and 64 deletions
+2 -5
View File
@@ -27,11 +27,8 @@ class Error;
extern const struct AudioOutputPlugin pulse_output_plugin;
void
pulse_output_lock(PulseOutput &po);
void
pulse_output_unlock(PulseOutput &po);
struct pa_threaded_mainloop *
pulse_output_get_mainloop(PulseOutput &po);
void
pulse_output_set_mixer(PulseOutput &po, PulseMixer &pm);