[cmake] fix android once for all
All checks were successful
eden-license / license-header (pull_request) Successful in 18s

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie 2025-09-19 07:35:53 +00:00 committed by crueter
parent c0c1e8215a
commit 4175fb2133

View file

@ -102,7 +102,11 @@ public:
T PopWait(std::stop_token stop_token) { T PopWait(std::stop_token stop_token) {
if (Empty()) { if (Empty()) {
std::unique_lock lock{cv_mutex}; std::unique_lock lock{cv_mutex};
cv.wait(lock, stop_token, [this] { return !Empty(); }); if constexpr (with_stop_token) {
cv.wait(lock, stop_token, [this] { return !Empty(); });
} else {
cv.wait(lock, [this] { return !Empty(); });
}
} }
if (stop_token.stop_requested()) { if (stop_token.stop_requested()) {
return T{}; return T{};