Add API to check if thread-local buffers are available

This commit is contained in:
Robin Gareus 2024-12-01 23:24:38 +01:00
parent 6e9be294a1
commit 8a238de551
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -42,6 +42,10 @@ public:
void get_buffers ();
void drop_buffers ();
static bool have_thread_buffers () {
return 0 != _private_thread_buffers.get ();
}
/* these MUST be called by a process thread's thread, nothing else */
static BufferSet& get_silent_buffers (ChanCount count = ChanCount::ZERO);