summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/os/event.h
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-02-10 22:00:34 +0100
committerGitHub <noreply@github.com>2024-02-10 22:00:34 +0100
commit7c56ecca3f5fd2b70564209d765593c56a500c9e (patch)
treec1ebc60262c7103409b59f284bdd176e4c86c5d9 /src/core/hle/service/os/event.h
parentFix multiplayer player count color in dark themes | Temp fix until #12744: Add green color for counts > 0 and < max_players - 1 (#12930) (diff)
parentglue: use multi wait API (diff)
downloadyuzu-7c56ecca3f5fd2b70564209d765593c56a500c9e.tar
yuzu-7c56ecca3f5fd2b70564209d765593c56a500c9e.tar.gz
yuzu-7c56ecca3f5fd2b70564209d765593c56a500c9e.tar.bz2
yuzu-7c56ecca3f5fd2b70564209d765593c56a500c9e.tar.lz
yuzu-7c56ecca3f5fd2b70564209d765593c56a500c9e.tar.xz
yuzu-7c56ecca3f5fd2b70564209d765593c56a500c9e.tar.zst
yuzu-7c56ecca3f5fd2b70564209d765593c56a500c9e.zip
Diffstat (limited to 'src/core/hle/service/os/event.h')
-rw-r--r--src/core/hle/service/os/event.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/core/hle/service/os/event.h b/src/core/hle/service/os/event.h
new file mode 100644
index 000000000..cdbc4635a
--- /dev/null
+++ b/src/core/hle/service/os/event.h
@@ -0,0 +1,31 @@
+// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+namespace Kernel {
+class KEvent;
+class KReadableEvent;
+} // namespace Kernel
+
+namespace Service {
+
+namespace KernelHelpers {
+class ServiceContext;
+}
+
+class Event {
+public:
+ explicit Event(KernelHelpers::ServiceContext& ctx);
+ ~Event();
+
+ void Signal();
+ void Clear();
+
+ Kernel::KReadableEvent* GetHandle();
+
+private:
+ Kernel::KEvent* m_event;
+};
+
+} // namespace Service