mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
atomic.cpp: fixup for WaitOnAddress path
Also fix wait quantum.
This commit is contained in:
parent
f0fd7e2e19
commit
3b8bce1bed
3 changed files with 4 additions and 4 deletions
|
@ -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 = 500;
|
||||
constexpr u64 host_min_quantum = 1000;
|
||||
#endif
|
||||
// TODO: Tune for other non windows operating sytems
|
||||
|
||||
|
|
|
@ -501,7 +501,7 @@ namespace rsx
|
|||
#ifdef __linux__
|
||||
constexpr u32 host_min_quantum = 50;
|
||||
#else
|
||||
constexpr u32 host_min_quantum = 500;
|
||||
constexpr u32 host_min_quantum = 1000;
|
||||
#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 = 500;
|
||||
constexpr u64 host_min_quantum = 1000;
|
||||
#endif
|
||||
if (remaining >= host_min_quantum)
|
||||
{
|
||||
|
|
|
@ -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 ? INFINITE : (timeout > (UINT32_MAX - 1) * 1000'000 ? (UINT32_MAX - 1) : timeout / 1000'000);
|
||||
const DWORD time_ms = timeout + 1 ? (timeout > (UINT32_MAX - 1) * 1000'000ull ? (UINT32_MAX - 1) : timeout / 1000'000) : INFINITE;
|
||||
|
||||
sema_handle _cmp{};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue