]> git.sesse.net Git - nageru/blobdiff - alsa_pool.h
Shut down the ALSA inotify thread using an eventfd instead of busypolling every 100 ms.
[nageru] / alsa_pool.h
index c9cd61abda1e8ecbbbaa575bf6021b5ecae141bd..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 {
@@ -149,6 +150,7 @@ private:
                                        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};