Moving Wait() to XObject base.

This commit is contained in:
Ben Vanik
2014-01-05 01:22:08 -08:00
parent 8bba532f25
commit 372fd97821
12 changed files with 56 additions and 135 deletions

View File

@@ -57,14 +57,17 @@ public:
// Reference()
// Dereference()
virtual X_STATUS Wait(uint32_t wait_reason, uint32_t processor_mode,
uint32_t alertable, uint64_t* opt_timeout);
X_STATUS Wait(
uint32_t wait_reason, uint32_t processor_mode, uint32_t alertable,
uint64_t* opt_timeout);
static void LockType();
static void UnlockType();
static XObject* GetObject(KernelState* kernel_state, void* native_ptr,
int32_t as_type = -1);
virtual void* GetWaitHandle() { return 0; }
protected:
Memory* memory() const;
void SetNativePointer(uint32_t native_ptr);