Skip to content

Commit

Permalink
[Kernel] WaitForNotification skip wait w/o wait_ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
Gliniak authored and gibbed committed Dec 26, 2020
1 parent ea6969f commit 74cb011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xenia/kernel/xiocompletion.cc
Expand Up @@ -30,7 +30,7 @@ bool XIOCompletion::WaitForNotification(uint64_t wait_ticks,
IONotification* notify) {
auto ms = std::chrono::milliseconds(TimeoutTicksToMs(wait_ticks));
auto res = threading::Wait(notification_semaphore_.get(), false, ms);
if (res == threading::WaitResult::kSuccess) {
if (res == threading::WaitResult::kSuccess || !wait_ticks) {
std::unique_lock<std::mutex> lock(notification_lock_);
assert_false(notifications_.empty());

Expand Down

0 comments on commit 74cb011

Please sign in to comment.