mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-27 23:47:03 +02:00
tststst
This commit is contained in:
parent
7a20a37981
commit
d77285fc35
1 changed files with 2 additions and 2 deletions
|
|
@ -38,8 +38,8 @@ void MicroSleep(u64 rem) {
|
|||
constexpr auto EnableWaitTimeFlag = 1U << 1;
|
||||
constexpr auto RequestC1State = 0U;
|
||||
// monitor_var should be aligned to a cache line.
|
||||
alignas(64) u64 monitor_var{};
|
||||
_mm_monitorx(&monitor_var, 0, 0);
|
||||
alignas(64) static const u64 monitor_var{};
|
||||
_mm_monitorx(const_cast<u64*>(std::addressof(monitor_var)), 0, 0);
|
||||
_mm_mwaitx(EnableWaitTimeFlag, RequestC1State, cycles);
|
||||
} else {
|
||||
std::this_thread::yield();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue