mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-17 00:17:57 -05:00
Kernel: Address Feedback.
This commit is contained in:
committed by
FernandoS27
parent
ea956c823e
commit
d219a96cc8
@ -20,12 +20,19 @@ namespace Kernel {
|
||||
|
||||
class Thread;
|
||||
|
||||
/**
|
||||
* The `TimeManager` takes care of scheduling time events on threads and executes their TimeUp
|
||||
* method when the event is triggered.
|
||||
*/
|
||||
class TimeManager {
|
||||
public:
|
||||
TimeManager(Core::System& system);
|
||||
explicit TimeManager(Core::System& system);
|
||||
|
||||
/// Schedule a time event on `timetask` thread that will expire in 'nanoseconds'
|
||||
/// returns a non-invalid handle in `event_handle` if correctly scheduled
|
||||
void ScheduleTimeEvent(Handle& event_handle, Thread* timetask, s64 nanoseconds);
|
||||
|
||||
/// Unschedule an existing time event
|
||||
void UnscheduleTimeEvent(Handle event_handle);
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user