[cmake] fix android once for all
All checks were successful
eden-license / license-header (pull_request) Successful in 26s
All checks were successful
eden-license / license-header (pull_request) Successful in 26s
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
ac43e28edb
commit
f00e9af276
1 changed files with 5 additions and 1 deletions
|
@ -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};
|
||||||
|
if constexpr (with_stop_token) {
|
||||||
cv.wait(lock, stop_token, [this] { return !Empty(); });
|
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{};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue