[common] use libc++ provided jthread instead of in-house one (which deadlocks on FBSD 14)
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
02016697d6
commit
c5de25c0d3
14 changed files with 43 additions and 364 deletions
|
@ -1,3 +1,6 @@
|
|||
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
// SPDX-FileCopyrightText: 2010 Dolphin Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
|
@ -99,7 +102,7 @@ public:
|
|||
T PopWait(std::stop_token stop_token) {
|
||||
if (Empty()) {
|
||||
std::unique_lock lock{cv_mutex};
|
||||
Common::CondvarWait(cv, lock, stop_token, [this] { return !Empty(); });
|
||||
cv.wait(lock, stop_token, [this] { return !Empty(); });
|
||||
}
|
||||
if (stop_token.stop_requested()) {
|
||||
return T{};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue