mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-27 02:07:10 +02:00
sleepier amd threads
This commit is contained in:
parent
e5d3b21089
commit
3417bed45d
1 changed files with 2 additions and 2 deletions
|
|
@ -190,8 +190,8 @@ bool Event::WaitFor(const std::chrono::nanoseconds time) {
|
|||
// MWAITX accepts a 32-bit input timer which determines the total number of cycles to wait for
|
||||
// NOT THE TOTAL ABSOLUTE TSC VALUE, it's just a delta
|
||||
// BIT[1] = use a timer
|
||||
// Hint = 0: Use C1 state when sleepy (means faster wakeup but less power saving)
|
||||
_mm_mwaitx(1 << 1, 0u, cycles);
|
||||
// Hint = 0: Use C2 state when sleepy (means slower wakeup but better savings)
|
||||
_mm_mwaitx(1 << 1, 1u, cycles);
|
||||
if (!is_set.load())
|
||||
return false;
|
||||
} else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue