Adding a "change in progress" check to alsa sink.
[debian/gnuradio] / gr-audio-alsa / src / audio_alsa_sink.h
index f3007f60f8a0503040873966c613776feea07d45..811cc6c8cbf86f55b5fb87c83c0db6e1b357e6b9 100644 (file)
@@ -83,6 +83,7 @@ class audio_alsa_sink : public gr_sync_block {
   // random stats
   int                  d_nunderuns;            // count of underruns
   int                  d_nsuspends;            // count of suspends
+  bool                  d_change_in_progress;   // Topology change in progress--used as spinlock for write_buffer
   bool                 d_ok_to_block;      // defaults to "true", controls blocking/non-block I/O
 
   void output_error_msg (const char *msg, int err);