void clear() noexcept { mutex.lock(); data.clear(); dataPendingRT.clear(); mutex.unlock(); }
void trySplice() noexcept { if (mutex.tryLock()) { dataPendingRT.moveTo(data, true); mutex.unlock(); } }
void ready() { mutex.lock(); mutex.unlock(); }