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

@@ -52,9 +52,6 @@ public:
size_t position() const { return position_; }
void set_position(size_t value) { position_ = value; }
virtual X_STATUS Wait(uint32_t wait_reason, uint32_t processor_mode,
uint32_t alertable, uint64_t* opt_timeout);
virtual X_STATUS QueryInfo(XFileInfo* out_info) = 0;
X_STATUS Read(void* buffer, size_t buffer_length, size_t byte_offset,
@@ -62,6 +59,8 @@ public:
X_STATUS Read(void* buffer, size_t buffer_length, size_t byte_offset,
XAsyncRequest* request);
virtual void* GetWaitHandle();
protected:
XFile(KernelState* kernel_state, uint32_t desired_access);
virtual X_STATUS ReadSync(