aboutsummaryrefslogtreecommitdiff
path: root/src/common/thread_worker.h
diff options
context:
space:
mode:
authorlizzie <lizzie@eden-emu.dev>2025-10-01 06:59:35 +0200
committercrueter <crueter@eden-emu.dev>2025-10-01 06:59:35 +0200
commitdfe10bc85196d1e7812b6cb775767cf1e072c20f (patch)
tree0c86acd8cc200efe54470a65d3050326684a90bb /src/common/thread_worker.h
parent9a098441def2cfc4281ab1af6b2e8b34200800c0 (diff)
[common] use libc++ provided jthread instead of in-house one (which deadlocks on FBSD 14) (#351)
Needs test on our CI targets to see I didn't miss anything. Worried about android. Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/351 Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Reviewed-by: MaranBr <maranbr@eden-emu.dev> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'src/common/thread_worker.h')
-rw-r--r--src/common/thread_worker.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common/thread_worker.h b/src/common/thread_worker.h
index 260ad44e45..6ec9d6a2bd 100644
--- a/src/common/thread_worker.h
+++ b/src/common/thread_worker.h
@@ -1,3 +1,6 @@
+// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
@@ -47,8 +50,8 @@ public:
if (requests.empty()) {
wait_condition.notify_all();
}
- Common::CondvarWait(condition, lock, stop_token,
- [this] { return !requests.empty(); });
+ condition.wait(lock, stop_token,
+ [this] { return !requests.empty(); });
if (stop_token.stop_requested()) {
break;
}