|
ReXGlue SDK
|
Public Member Functions | |
| TimerObject (u32 timer_type) | |
| ~TimerObject () | |
| X_STATUS | SetDPC (TitleRuntime &runtime, u32 ktimer, i64 due_time, u32 period_ms, u32 dpc) |
| X_STATUS | Set (TitleRuntime &runtime, i64 due_time, u32 period_ms, u32 routine, u32 routine_arg, bool resume) |
| X_STATUS | Cancel () |
Public Attributes | |
| PublishedPtr< rex::platform::Timer > | timer |
| std::weak_ptr< rex::platform::TimerQueueWaitItem > | expiry |
| u32 | callback_thread_id = 0 |
| u32 | callback_routine = 0 |
| u32 | callback_routine_arg = 0 |
|
explicit |
Constructs a timer of a type.
| timer_type | 0 for a notification timer, 1 for a synchronization timer. |
| rex::kernel::TimerObject::~TimerObject | ( | ) |
Disarms the timer.
| X_STATUS rex::kernel::TimerObject::Cancel | ( | ) |
| X_STATUS rex::kernel::TimerObject::Set | ( | TitleRuntime & | runtime, |
| i64 | due_time, | ||
| u32 | period_ms, | ||
| u32 | routine, | ||
| u32 | routine_arg, | ||
| bool | resume ) |
Arms a timer. A completion routine runs as an APC on the calling thread.
| due_time | A negative relative time in 100 nanosecond ticks, or an absolute file time. |
| period_ms | The repeat period in milliseconds, 0 for a single shot. |
| routine | The title completion routine, 0 for none. |
| resume | True to request a resume from suspend, which is ignored. |
| X_STATUS rex::kernel::TimerObject::SetDPC | ( | TitleRuntime & | runtime, |
| u32 | ktimer, | ||
| i64 | due_time, | ||
| u32 | period_ms, | ||
| u32 | dpc ) |
Arms a KTIMER that queues its DPC when it expires.
| runtime | The runtime that owns the dispatcher. |
| ktimer | Address of the title's KTIMER. |
| due_time | A negative relative time in 100 nanosecond ticks, or an absolute file time. |
| period_ms | The repeat period in milliseconds, 0 for a single shot. |
| dpc | Address of the title's KDPC, 0 for none. |
| u32 rex::kernel::TimerObject::callback_routine = 0 |
Guest address of the completion routine, 0 for none.
| u32 rex::kernel::TimerObject::callback_thread_id = 0 |
ID of the thread that armed the timer, the thread its completion routine runs on.
| std::weak_ptr<rex::platform::TimerQueueWaitItem> rex::kernel::TimerObject::expiry |
Pending expiry entry the dispatcher tracks, expired when the timer is canceled.
| PublishedPtr<rex::platform::Timer> rex::kernel::TimerObject::timer |
Host timer that signals the object when it expires.