diff options
| author | Liam <byteslice@airmail.cc> | 2023-02-18 16:26:48 -0500 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2023-02-21 12:19:25 -0500 |
| commit | a9369726147c7499e0016e183d5d56a7b44efe4b (patch) | |
| tree | c1d1b4a9fdafd92863c0922b05d72c14de83ffa7 /src/core/hle/service/mutex.h | |
| parent | 23151ff498993badb341ddf6de5ed38a5833e41c (diff) | |
service: refactor server architecture
Converts services to have their own processes
Diffstat (limited to 'src/core/hle/service/mutex.h')
| -rw-r--r-- | src/core/hle/service/mutex.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/core/hle/service/mutex.h b/src/core/hle/service/mutex.h new file mode 100644 index 000000000..95ac9b117 --- /dev/null +++ b/src/core/hle/service/mutex.h @@ -0,0 +1,31 @@ +// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include "common/common_types.h" + +namespace Core { +class System; +} + +namespace Kernel { +class KEvent; +} + +namespace Service { + +class Mutex { +public: + explicit Mutex(Core::System& system); + ~Mutex(); + + void lock(); + void unlock(); + +private: + Core::System& m_system; + Kernel::KEvent* m_event{}; +}; + +} // namespace Service |
