diff options
| author | 2016-12-16 00:41:22 -0500 | |
|---|---|---|
| committer | 2016-12-16 00:41:22 -0500 | |
| commit | cda7210fade53a96fcba5fe5cd6dfd7b604f8277 (patch) | |
| tree | c4090e3871e717ee4d0a2edd837feffc2c877cb0 /src/core/hle/kernel/timer.cpp | |
| parent | Merge pull request #2316 from endrift/macos-gcc (diff) | |
| parent | Fixed the codestyle to match our clang-format rules. (diff) | |
| download | yuzu-cda7210fade53a96fcba5fe5cd6dfd7b604f8277.tar.gz yuzu-cda7210fade53a96fcba5fe5cd6dfd7b604f8277.tar.xz yuzu-cda7210fade53a96fcba5fe5cd6dfd7b604f8277.zip | |
Merge pull request #2260 from Subv/scheduling
Threading: Reworked the way our scheduler works.
Diffstat (limited to 'src/core/hle/kernel/timer.cpp')
| -rw-r--r-- | src/core/hle/kernel/timer.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/core/hle/kernel/timer.cpp b/src/core/hle/kernel/timer.cpp index eac181f4e..b50cf520d 100644 --- a/src/core/hle/kernel/timer.cpp +++ b/src/core/hle/kernel/timer.cpp | |||
| @@ -60,14 +60,10 @@ void Timer::Set(s64 initial, s64 interval) { | |||
| 60 | u64 initial_microseconds = initial / 1000; | 60 | u64 initial_microseconds = initial / 1000; |
| 61 | CoreTiming::ScheduleEvent(usToCycles(initial_microseconds), timer_callback_event_type, | 61 | CoreTiming::ScheduleEvent(usToCycles(initial_microseconds), timer_callback_event_type, |
| 62 | callback_handle); | 62 | callback_handle); |
| 63 | |||
| 64 | HLE::Reschedule(__func__); | ||
| 65 | } | 63 | } |
| 66 | 64 | ||
| 67 | void Timer::Cancel() { | 65 | void Timer::Cancel() { |
| 68 | CoreTiming::UnscheduleEvent(timer_callback_event_type, callback_handle); | 66 | CoreTiming::UnscheduleEvent(timer_callback_event_type, callback_handle); |
| 69 | |||
| 70 | HLE::Reschedule(__func__); | ||
| 71 | } | 67 | } |
| 72 | 68 | ||
| 73 | void Timer::Clear() { | 69 | void Timer::Clear() { |