diff options
author | Subv <subv2112@gmail.com> | 2015-01-10 17:34:50 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2015-01-11 16:42:59 +0100 |
commit | 38da198aa14daef3b4dfb83d13e82bde91b98a8d (patch) | |
tree | f3b40395a5c4468fb3e3e5bde179c837c37fa2a6 /src/core/hle | |
parent | Merge pull request #462 from archshift/isbusy (diff) | |
download | yuzu-38da198aa14daef3b4dfb83d13e82bde91b98a8d.tar yuzu-38da198aa14daef3b4dfb83d13e82bde91b98a8d.tar.gz yuzu-38da198aa14daef3b4dfb83d13e82bde91b98a8d.tar.bz2 yuzu-38da198aa14daef3b4dfb83d13e82bde91b98a8d.tar.lz yuzu-38da198aa14daef3b4dfb83d13e82bde91b98a8d.tar.xz yuzu-38da198aa14daef3b4dfb83d13e82bde91b98a8d.tar.zst yuzu-38da198aa14daef3b4dfb83d13e82bde91b98a8d.zip |
Diffstat (limited to 'src/core/hle')
-rw-r--r-- | src/core/hle/svc.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index d3b4483ca..5c6a3be80 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp @@ -120,9 +120,6 @@ static Result CloseHandle(Handle handle) { /// Wait for a handle to synchronize, timeout after the specified nanoseconds static Result WaitSynchronization1(Handle handle, s64 nano_seconds) { - // TODO(bunnei): Do something with nano_seconds, currently ignoring this - bool wait_infinite = (nano_seconds == -1); // Used to wait until a thread has terminated - SharedPtr<Kernel::Object> object = Kernel::g_handle_table.GetGeneric(handle); if (object == nullptr) return InvalidHandle(ErrorModule::Kernel).raw; @@ -134,6 +131,8 @@ static Result WaitSynchronization1(Handle handle, s64 nano_seconds) { // Check for next thread to schedule if (wait.Succeeded() && *wait) { + // Create an event to wake the thread up after the specified nanosecond delay has passed + Kernel::WakeThreadAfterDelay(Kernel::GetCurrentThread(), nano_seconds); HLE::Reschedule(__func__); } |