summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-03-18 07:42:17 +0100
committerbunnei <bunneidev@gmail.com>2023-03-18 07:42:17 +0100
commit0eb3fa05e5af341ad2922b96de07f4cf32cba85a (patch)
tree28b7237c38f72d232659cb1b26c1c57fe4dda6eb /src
parentMerge pull request #9778 from behunin/my-box-chevy (diff)
downloadyuzu-0eb3fa05e5af341ad2922b96de07f4cf32cba85a.tar
yuzu-0eb3fa05e5af341ad2922b96de07f4cf32cba85a.tar.gz
yuzu-0eb3fa05e5af341ad2922b96de07f4cf32cba85a.tar.bz2
yuzu-0eb3fa05e5af341ad2922b96de07f4cf32cba85a.tar.lz
yuzu-0eb3fa05e5af341ad2922b96de07f4cf32cba85a.tar.xz
yuzu-0eb3fa05e5af341ad2922b96de07f4cf32cba85a.tar.zst
yuzu-0eb3fa05e5af341ad2922b96de07f4cf32cba85a.zip
Diffstat (limited to 'src')
-rw-r--r--src/common/bounded_threadsafe_queue.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/bounded_threadsafe_queue.h b/src/common/bounded_threadsafe_queue.h
index 21217801e..14e887c70 100644
--- a/src/common/bounded_threadsafe_queue.h
+++ b/src/common/bounded_threadsafe_queue.h
@@ -9,10 +9,11 @@
#include <memory>
#include <mutex>
#include <new>
-#include <stop_token>
#include <type_traits>
#include <utility>
+#include "common/polyfill_thread.h"
+
namespace Common {
#if defined(__cpp_lib_hardware_interference_size)
@@ -78,7 +79,7 @@ public:
auto& slot = slots[idx(tail)];
if (!slot.turn.test()) {
std::unique_lock lock{cv_mutex};
- cv.wait(lock, stop, [&slot] { return slot.turn.test(); });
+ Common::CondvarWait(cv, lock, stop, [&slot] { return slot.turn.test(); });
}
v = slot.move();
slot.destroy();