summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/event.h')
-rw-r--r--src/core/hle/kernel/event.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/hle/kernel/event.h b/src/core/hle/kernel/event.h
index 3c20c05e8..27d6126b0 100644
--- a/src/core/hle/kernel/event.h
+++ b/src/core/hle/kernel/event.h
@@ -10,14 +10,18 @@
namespace Kernel {
+class KernelCore;
+
class Event final : public WaitObject {
public:
/**
* Creates an event
+ * @param kernel The kernel instance to create this event under.
* @param reset_type ResetType describing how to create event
* @param name Optional name of event
*/
- static SharedPtr<Event> Create(ResetType reset_type, std::string name = "Unknown");
+ static SharedPtr<Event> Create(KernelCore& kernel, ResetType reset_type,
+ std::string name = "Unknown");
std::string GetTypeName() const override {
return "Event";
@@ -44,7 +48,7 @@ public:
void Clear();
private:
- Event();
+ explicit Event(KernelCore& kernel);
~Event() override;
ResetType reset_type; ///< Current ResetType