diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-12-03 18:09:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-03 18:09:21 +0100 |
commit | 22aff09b33941cdf907e474cb86117fef838abba (patch) | |
tree | 73a747be44fd2ba994c3d40c8f6ea18633c0f880 /src/common/thread_worker.h | |
parent | Merge pull request #9353 from vonchenplus/draw_indexed (diff) | |
parent | general: fix compile for Apple Clang (diff) | |
download | yuzu-22aff09b33941cdf907e474cb86117fef838abba.tar yuzu-22aff09b33941cdf907e474cb86117fef838abba.tar.gz yuzu-22aff09b33941cdf907e474cb86117fef838abba.tar.bz2 yuzu-22aff09b33941cdf907e474cb86117fef838abba.tar.lz yuzu-22aff09b33941cdf907e474cb86117fef838abba.tar.xz yuzu-22aff09b33941cdf907e474cb86117fef838abba.tar.zst yuzu-22aff09b33941cdf907e474cb86117fef838abba.zip |
Diffstat (limited to 'src/common/thread_worker.h')
-rw-r--r-- | src/common/thread_worker.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/thread_worker.h b/src/common/thread_worker.h index 62c60f724..260ad44e4 100644 --- a/src/common/thread_worker.h +++ b/src/common/thread_worker.h @@ -7,13 +7,13 @@ #include <condition_variable> #include <functional> #include <mutex> -#include <stop_token> #include <string> #include <thread> #include <type_traits> #include <vector> #include <queue> +#include "common/polyfill_thread.h" #include "common/thread.h" #include "common/unique_function.h" @@ -47,7 +47,8 @@ public: if (requests.empty()) { wait_condition.notify_all(); } - condition.wait(lock, stop_token, [this] { return !requests.empty(); }); + Common::CondvarWait(condition, lock, stop_token, + [this] { return !requests.empty(); }); if (stop_token.stop_requested()) { break; } |