X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=alsa_pool.h;h=904e2ecf971f9850744b5e5a723e00aae073c399;hp=bc82201bf76a8c9be329328ff2e5f6cc3c541010;hb=refs%2Fheads%2Fcef;hpb=34dabe75b7985a42432a2c0f948a9c5a9404e57b diff --git a/alsa_pool.h b/alsa_pool.h index bc82201..904e2ec 100644 --- a/alsa_pool.h +++ b/alsa_pool.h @@ -1,19 +1,14 @@ #ifndef _ALSA_POOL_H #define _ALSA_POOL_H 1 -#include #include -#include +#include #include #include #include #include #include -#include "alsa_input.h" -#include "bmusb/bmusb.h" -#include "timebase.h" - class ALSAInput; class DeviceSpecProto; @@ -21,6 +16,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 +144,11 @@ private: unsigned num_channels, const std::string &address); + std::atomic should_quit{false}; + int should_quit_fd; + std::thread inotify_thread; + std::atomic retry_threads_running{0}; + friend class ALSAInput; };