lib/alsa/NonBlock: throw exception on error
Avoid another potential deadlock: if no file descriptors are registered, our non-blocking ALSA code cannot ever work.
This commit is contained in:
@@ -33,10 +33,12 @@ class MultiSocketMonitor;
|
||||
* Update #MultiSocketMonitor's socket list from
|
||||
* snd_pcm_poll_descriptors(). To be called from
|
||||
* MultiSocketMonitor::PrepareSockets().
|
||||
*
|
||||
* Throws exception on error.
|
||||
*/
|
||||
std::chrono::steady_clock::duration
|
||||
PrepareAlsaPcmSockets(MultiSocketMonitor &m, snd_pcm_t *pcm,
|
||||
ReusableArray<pollfd> &pfd_buffer) noexcept;
|
||||
ReusableArray<pollfd> &pfd_buffer);
|
||||
|
||||
/**
|
||||
* Update #MultiSocketMonitor's socket list from
|
||||
|
||||
Reference in New Issue
Block a user