Kernel: pass Kernel reference into AddressArbiter
This commit is contained in:
parent
f446fd1fe5
commit
734be98966
5 changed files with 24 additions and 19 deletions
|
@ -6,10 +6,8 @@
|
|||
|
||||
#include <atomic>
|
||||
#include <string>
|
||||
|
||||
#include <boost/smart_ptr/intrusive_ptr.hpp>
|
||||
|
||||
#include "common/common_types.h"
|
||||
#include "core/hle/kernel/kernel.h"
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
|
@ -88,9 +86,6 @@ inline void intrusive_ptr_release(Object* object) {
|
|||
}
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
using SharedPtr = boost::intrusive_ptr<T>;
|
||||
|
||||
/**
|
||||
* Attempts to downcast the given Object pointer to a pointer to T.
|
||||
* @return Derived pointer to the object, or `nullptr` if `object` isn't of type T.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue