diff options
author | Subv <subv2112@gmail.com> | 2017-01-02 01:23:19 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2017-01-05 19:06:17 +0100 |
commit | e52ca85711e8df54c8eafe556b6ba0ca683ddea0 (patch) | |
tree | 5a5842cdea80d830d4295d9a96cb5ff4bfd9162d /src/core/hle/kernel/timer.cpp | |
parent | Merge pull request #2390 from jroweboy/bintray (diff) | |
download | yuzu-e52ca85711e8df54c8eafe556b6ba0ca683ddea0.tar yuzu-e52ca85711e8df54c8eafe556b6ba0ca683ddea0.tar.gz yuzu-e52ca85711e8df54c8eafe556b6ba0ca683ddea0.tar.bz2 yuzu-e52ca85711e8df54c8eafe556b6ba0ca683ddea0.tar.lz yuzu-e52ca85711e8df54c8eafe556b6ba0ca683ddea0.tar.xz yuzu-e52ca85711e8df54c8eafe556b6ba0ca683ddea0.tar.zst yuzu-e52ca85711e8df54c8eafe556b6ba0ca683ddea0.zip |
Diffstat (limited to 'src/core/hle/kernel/timer.cpp')
-rw-r--r-- | src/core/hle/kernel/timer.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/core/hle/kernel/timer.cpp b/src/core/hle/kernel/timer.cpp index b50cf520d..ec85b7ec8 100644 --- a/src/core/hle/kernel/timer.cpp +++ b/src/core/hle/kernel/timer.cpp @@ -31,11 +31,6 @@ SharedPtr<Timer> Timer::Create(ResetType reset_type, std::string name) { timer->interval_delay = 0; timer->callback_handle = timer_callback_handle_table.Create(timer).MoveFrom(); - if (reset_type == ResetType::Pulse) { - LOG_ERROR(Kernel, "Unimplemented timer reset type Pulse"); - UNIMPLEMENTED(); - } - return timer; } @@ -70,6 +65,13 @@ void Timer::Clear() { signaled = false; } +void Timer::WakeupAllWaitingThreads() { + WaitObject::WakeupAllWaitingThreads(); + + if (reset_type == ResetType::Pulse) + signaled = false; +} + /// The timer callback event, called when a timer is fired static void TimerCallback(u64 timer_handle, int cycles_late) { SharedPtr<Timer> timer = |