1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

Revert "atomic.cpp: fixup for WaitOnAddress path"

This reverts commit 3b8bce1bed.
This commit is contained in:
Nekotekina 2020-10-21 09:54:22 +03:00
parent 3b8bce1bed
commit 306593a0c5
3 changed files with 4 additions and 4 deletions

View File

@ -334,7 +334,7 @@ public:
#else
// Host scheduler quantum for windows (worst case)
// NOTE: On ps3 this function has very high accuracy
constexpr u64 host_min_quantum = 1000;
constexpr u64 host_min_quantum = 500;
#endif
// TODO: Tune for other non windows operating sytems

View File

@ -501,7 +501,7 @@ namespace rsx
#ifdef __linux__
constexpr u32 host_min_quantum = 50;
#else
constexpr u32 host_min_quantum = 1000;
constexpr u32 host_min_quantum = 500;
#endif
u64 start_time = get_system_time();
@ -2543,7 +2543,7 @@ namespace rsx
#else
// Host scheduler quantum for windows (worst case)
// NOTE: On ps3 this function has very high accuracy
constexpr u64 host_min_quantum = 1000;
constexpr u64 host_min_quantum = 500;
#endif
if (remaining >= host_min_quantum)
{

View File

@ -574,7 +574,7 @@ void atomic_storage_futex::wait(const void* data, std::size_t size, u64 old_valu
}
else
{
const DWORD time_ms = timeout + 1 ? (timeout > (UINT32_MAX - 1) * 1000'000ull ? (UINT32_MAX - 1) : timeout / 1000'000) : INFINITE;
const DWORD time_ms = timeout + 1 ? INFINITE : (timeout > (UINT32_MAX - 1) * 1000'000 ? (UINT32_MAX - 1) : timeout / 1000'000);
sema_handle _cmp{};