mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-26 13:26:30 -05:00
Kernel: Clang Format
This commit is contained in:
parent
c32520ceb7
commit
a3524879be
2 changed files with 5 additions and 5 deletions
|
@ -414,7 +414,7 @@ u64 Scheduler::GetLastContextSwitchTicks() const {
|
|||
}
|
||||
|
||||
void Scheduler::TryDoContextSwitch() {
|
||||
if (is_context_switch_pending ) {
|
||||
if (is_context_switch_pending) {
|
||||
SwitchContext();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -68,8 +68,8 @@ void Thread::WakeAfterDelay(s64 nanoseconds) {
|
|||
// This function might be called from any thread so we have to be cautious and use the
|
||||
// thread-safe version of ScheduleEvent.
|
||||
const s64 cycles = Core::Timing::nsToCycles(std::chrono::nanoseconds{nanoseconds});
|
||||
Core::System::GetInstance().CoreTiming().ScheduleEvent(cycles, kernel.ThreadWakeupCallbackEventType(),
|
||||
callback_handle);
|
||||
Core::System::GetInstance().CoreTiming().ScheduleEvent(
|
||||
cycles, kernel.ThreadWakeupCallbackEventType(), callback_handle);
|
||||
}
|
||||
|
||||
void Thread::CancelWakeupTimer() {
|
||||
|
|
Loading…
Reference in a new issue