Make max ring buffer timeout smaller

This commit is contained in:
wheremyfoodat 2024-02-24 00:01:26 +02:00
parent 921250bcd2
commit c638388086

View file

@ -56,7 +56,7 @@ namespace Common {
}
std::unique_lock<std::mutex> l(m_mu);
using namespace std::chrono_literals;
bool safe = m_cv.wait_for(l, 20ms, [this, N]() -> bool { return N < availableLocked(); });
bool safe = m_cv.wait_for(l, 5ms, [this, N]() -> bool { return N < availableLocked(); });
if (safe) enqueueSafe(data, N);
return safe;
}