Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentHouliston committed Aug 26, 2024
1 parent 3a1d7b5 commit f380a0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/SleeperWindows.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ namespace util {

::SetWaitableTimer(state->timer, &ft, 0, nullptr, nullptr, 0);
std::array<const ::HANDLE, 2> items = {state->timer, state->waker};
::WaitForMultipleObjects(2, items, FALSE, INFINITE);
::ClearEvent(state->waker);
::WaitForMultipleObjects(2, items.data(), FALSE, INFINITE);
::ResetEvent(state->waker);
}

void Sleeper::wake() {
Expand Down

0 comments on commit f380a0a

Please sign in to comment.