diff options
| author | Liam <byteslice@airmail.cc> | 2024-02-06 23:09:43 -0500 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2024-02-07 12:14:46 -0500 |
| commit | 9404633bfd1e4ea23ccf8ef526b2b4c564ba512d (patch) | |
| tree | fe37bb0acf2383ecc625f3c278000ba5869ccbaa /src/core/hle/service/os/mutex.h | |
| parent | c10e720ba9cb979577b3af53adb1347f13ec4ad5 (diff) | |
service: add os types and multi wait API
Diffstat (limited to 'src/core/hle/service/os/mutex.h')
| -rw-r--r-- | src/core/hle/service/os/mutex.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/core/hle/service/os/mutex.h b/src/core/hle/service/os/mutex.h new file mode 100644 index 000000000..95ac9b117 --- /dev/null +++ b/src/core/hle/service/os/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 |
