Kernel: pass Kernel reference into AddressArbiter

This commit is contained in:
Weiyi Wang 2018-10-11 15:19:45 -04:00
parent f446fd1fe5
commit 734be98966
5 changed files with 24 additions and 19 deletions

View file

@ -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.