X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=alsa_pool.h;h=904e2ecf971f9850744b5e5a723e00aae073c399;hb=fa54f2630c56a1df0046923d6a77b1bd58abf240;hp=bc82201bf76a8c9be329328ff2e5f6cc3c541010;hpb=34dabe75b7985a42432a2c0f948a9c5a9404e57b;p=nageru 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; };