mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 12:39:13 +12:00
Make max ring buffer timeout smaller
This commit is contained in:
parent
921250bcd2
commit
c638388086
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ namespace Common {
|
||||||
}
|
}
|
||||||
std::unique_lock<std::mutex> l(m_mu);
|
std::unique_lock<std::mutex> l(m_mu);
|
||||||
using namespace std::chrono_literals;
|
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);
|
if (safe) enqueueSafe(data, N);
|
||||||
return safe;
|
return safe;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue