|
ReXGlue SDK
|
Public Member Functions | |
| ThreadState (u32 thread_id, u32 stack_base, u32 pcr_address, GuestAddressSpace *memory, TitleRuntime *runtime) | |
| ~ThreadState () | |
| GuestAddressSpace * | GetAddressSpace () const |
| void | RequestStop () |
| bool | IsStopRequested () const |
| void | ClearStop () |
| ::PPCContext * | GetContext () const |
| u32 | GetThreadID () const |
| TitleRuntime * | GetRuntime () const |
| DPCSaveArea & | GetDPCSaveArea () |
| char *& | GetStrtokContext () |
Static Public Member Functions | |
| static void | Bind (ThreadState *state) |
| static ThreadState * | Get () |
| static u32 | GetBoundThreadID () |
| rex::kernel::ThreadState::ThreadState | ( | u32 | thread_id, |
| u32 | stack_base, | ||
| u32 | pcr_address, | ||
| GuestAddressSpace * | memory, | ||
| TitleRuntime * | runtime ) |
Constructs the state of a guest thread.
| thread_id | The guest thread ID, UINT32_MAX for a host thread ID. |
| stack_base | The guest stack pointer. |
| pcr_address | The guest PCR address, loaded into r13. |
| runtime | The runtime the thread belongs to, null in tests that run without one. |
| rex::kernel::ThreadState::~ThreadState | ( | ) |
Unbinds the state from the calling host thread when it is the bound one.
|
static |
Binds a thread state to the calling host thread.
| state | The state, null to unbind. |
|
inline |
Clears the stop request once the thread runs its exit sequence.
|
static |
Returns the thread state bound to the calling host thread, null when none is bound.
|
static |
|
inline |
Returns the runtime the thread belongs to, null for a state built without one.
|
inline |
Returns the scan position of the shim strtok on this thread.
|
inline |
Asks the thread to stop at its next kernel boundary.