]> git.sesse.net Git - nageru/blobdiff - alsa_pool.h
Rewrite the ALSA sequencer input loop.
[nageru] / alsa_pool.h
index bc82201bf76a8c9be329328ff2e5f6cc3c541010..7bab80806f309828f160e8bc4580e56d2fe30ff3 100644 (file)
@@ -21,6 +21,7 @@ class DeviceSpecProto;
 // In particular, it deals with enumeration of cards, and hotplug of new ones.
 class ALSAPool {
 public:
+       ALSAPool();
        ~ALSAPool();
 
        struct Device {
@@ -148,6 +149,11 @@ private:
                                        unsigned num_channels,
                                        const std::string &address);
 
+       std::atomic<bool> should_quit{false};
+       int should_quit_fd;
+       std::thread inotify_thread;
+       std::atomic<int> retry_threads_running{0};
+
        friend class ALSAInput;
 };