summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-07 03:31:25 +0200
committerGitHub <noreply@github.com>2018-08-07 03:31:25 +0200
commitf179e87864b2ab2e0a482311dff2bd271fbbbeda (patch)
tree6b0c5d0e4959fa024ad766cdc5d24c867a418999 /src/core
parentMerge pull request #936 from bunnei/avoid-copies (diff)
parentkernel/event: Make data members private (diff)
downloadyuzu-f179e87864b2ab2e0a482311dff2bd271fbbbeda.tar
yuzu-f179e87864b2ab2e0a482311dff2bd271fbbbeda.tar.gz
yuzu-f179e87864b2ab2e0a482311dff2bd271fbbbeda.tar.bz2
yuzu-f179e87864b2ab2e0a482311dff2bd271fbbbeda.tar.lz
yuzu-f179e87864b2ab2e0a482311dff2bd271fbbbeda.tar.xz
yuzu-f179e87864b2ab2e0a482311dff2bd271fbbbeda.tar.zst
yuzu-f179e87864b2ab2e0a482311dff2bd271fbbbeda.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/event.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/core/hle/kernel/event.h b/src/core/hle/kernel/event.h
index 1c99911b2..3c20c05e8 100644
--- a/src/core/hle/kernel/event.h
+++ b/src/core/hle/kernel/event.h
@@ -31,10 +31,9 @@ public:
return HANDLE_TYPE;
}
- ResetType reset_type; ///< Current ResetType
-
- bool signaled; ///< Whether the event has already been signaled
- std::string name; ///< Name of event (optional)
+ ResetType GetResetType() const {
+ return reset_type;
+ }
bool ShouldWait(Thread* thread) const override;
void Acquire(Thread* thread) override;
@@ -47,6 +46,11 @@ public:
private:
Event();
~Event() override;
+
+ ResetType reset_type; ///< Current ResetType
+
+ bool signaled; ///< Whether the event has already been signaled
+ std::string name; ///< Name of event (optional)
};
} // namespace Kernel