mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-10-31 07:59:02 -05:00 
			
		
		
		
	core_timing: Namespace all functions and constants in core_timing's header
All of these variables and functions are related to timings and should be within the namespace.
This commit is contained in:
		| @@ -146,7 +146,8 @@ void Thread::WakeAfterDelay(s64 nanoseconds) { | ||||
|     if (nanoseconds == -1) | ||||
|         return; | ||||
|  | ||||
|     CoreTiming::ScheduleEvent(nsToCycles(nanoseconds), ThreadWakeupEventType, callback_handle); | ||||
|     CoreTiming::ScheduleEvent(CoreTiming::nsToCycles(nanoseconds), ThreadWakeupEventType, | ||||
|                               callback_handle); | ||||
| } | ||||
|  | ||||
| void Thread::CancelWakeupTimer() { | ||||
|   | ||||
| @@ -57,7 +57,8 @@ void Timer::Set(s64 initial, s64 interval) { | ||||
|         // Immediately invoke the callback | ||||
|         Signal(0); | ||||
|     } else { | ||||
|         CoreTiming::ScheduleEvent(nsToCycles(initial), timer_callback_event_type, callback_handle); | ||||
|         CoreTiming::ScheduleEvent(CoreTiming::nsToCycles(initial), timer_callback_event_type, | ||||
|                                   callback_handle); | ||||
|     } | ||||
| } | ||||
|  | ||||
| @@ -86,7 +87,7 @@ void Timer::Signal(int cycles_late) { | ||||
|  | ||||
|     if (interval_delay != 0) { | ||||
|         // Reschedule the timer with the interval delay | ||||
|         CoreTiming::ScheduleEvent(nsToCycles(interval_delay) - cycles_late, | ||||
|         CoreTiming::ScheduleEvent(CoreTiming::nsToCycles(interval_delay) - cycles_late, | ||||
|                                   timer_callback_event_type, callback_handle); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Lioncash
					Lioncash