From 2e461103790110a3deea6425709b1f7f937085ea Mon Sep 17 00:00:00 2001 From: Maide <34639600+Kelebek1@users.noreply.github.com> Date: Thu, 28 Jul 2022 00:47:06 +0100 Subject: Revert Coretiming PRs 8531 and 7454 (#8591) --- src/tests/core/core_timing.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/tests/core/core_timing.cpp') diff --git a/src/tests/core/core_timing.cpp b/src/tests/core/core_timing.cpp index 894975e6f..7c432a63c 100644 --- a/src/tests/core/core_timing.cpp +++ b/src/tests/core/core_timing.cpp @@ -8,7 +8,6 @@ #include #include #include -#include #include #include @@ -23,15 +22,14 @@ std::array delays{}; std::bitset callbacks_ran_flags; u64 expected_callback = 0; -std::mutex control_mutex; template std::optional HostCallbackTemplate(std::uintptr_t user_data, s64 time, std::chrono::nanoseconds ns_late) { - std::unique_lock lk(control_mutex); static_assert(IDX < CB_IDS.size(), "IDX out of range"); callbacks_ran_flags.set(IDX); REQUIRE(CB_IDS[IDX] == user_data); + REQUIRE(CB_IDS[IDX] == CB_IDS[calls_order[expected_callback]]); delays[IDX] = ns_late.count(); ++expected_callback; return std::nullopt; -- cgit v1.2.3