Start of DPCs. Queuing them, but not yet dispatching.
This commit is contained in:
52
src/xenia/kernel/dispatcher.h
Normal file
52
src/xenia/kernel/dispatcher.h
Normal file
@@ -0,0 +1,52 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* Xenia : Xbox 360 Emulator Research Project *
|
||||
******************************************************************************
|
||||
* Copyright 2013 Ben Vanik. All rights reserved. *
|
||||
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_KERNEL_XBOXKRNL_DISPATCHER_H_
|
||||
#define XENIA_KERNEL_XBOXKRNL_DISPATCHER_H_
|
||||
|
||||
#include <xenia/common.h>
|
||||
#include <xenia/core.h>
|
||||
|
||||
#include <xenia/xbox.h>
|
||||
|
||||
|
||||
namespace xe {
|
||||
namespace kernel {
|
||||
|
||||
class KernelState;
|
||||
class NativeList;
|
||||
|
||||
|
||||
class Dispatcher {
|
||||
public:
|
||||
Dispatcher(KernelState* kernel_state);
|
||||
virtual ~Dispatcher();
|
||||
|
||||
KernelState* kernel_state() const { return kernel_state_; }
|
||||
|
||||
void Lock();
|
||||
void Unlock();
|
||||
|
||||
NativeList* dpc_list() const { return dpc_list_; }
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
KernelState* kernel_state_;
|
||||
|
||||
xe_mutex_t* lock_;
|
||||
NativeList* dpc_list_;
|
||||
};
|
||||
|
||||
|
||||
} // namespace kernel
|
||||
} // namespace xe
|
||||
|
||||
|
||||
#endif // XENIA_KERNEL_XBOXKRNL_DISPATCHER_H_
|
||||
Reference in New Issue
Block a user