core/hle/kernel: Make Mutex a per-process class.

Makes it an instantiable class like it is in the actual kernel. This
will also allow removing reliance on global accessors in a following
change, now that we can encapsulate a reference to the system instance
in the class.
This commit is contained in:
Lioncash 2019-03-14 00:29:54 -04:00
parent 2d9546848e
commit 555cd26ec2
5 changed files with 47 additions and 18 deletions

View file

@ -231,7 +231,8 @@ void Process::LoadModule(CodeSet module_, VAddr base_addr) {
}
Process::Process(Core::System& system)
: WaitObject{system.Kernel()}, address_arbiter{system}, system{system} {}
: WaitObject{system.Kernel()}, address_arbiter{system}, mutex{system}, system{system} {}
Process::~Process() = default;
void Process::Acquire(Thread* thread) {