summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Lioncash2018-08-06 12:52:21 -0400
committerGravatar Lioncash2018-08-06 12:53:02 -0400
commit2feb1a8ba6746a264ef4cc7ad7097c5c8b136e05 (patch)
treebeeab9f5d442901b32e6cfedc6fb46db7b08b8ff /src/core
parentMerge pull request #933 from lioncash/memory (diff)
downloadyuzu-2feb1a8ba6746a264ef4cc7ad7097c5c8b136e05.tar.gz
yuzu-2feb1a8ba6746a264ef4cc7ad7097c5c8b136e05.tar.xz
yuzu-2feb1a8ba6746a264ef4cc7ad7097c5c8b136e05.zip
kernel/event: Make data members private
Instead we can simply provide accessors to the required data instead of giving external read/write access to the variables directly.
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:
31 return HANDLE_TYPE; 31 return HANDLE_TYPE;
32 } 32 }
33 33
34 ResetType reset_type; ///< Current ResetType 34 ResetType GetResetType() const {
35 35 return reset_type;
36 bool signaled; ///< Whether the event has already been signaled 36 }
37 std::string name; ///< Name of event (optional)
38 37
39 bool ShouldWait(Thread* thread) const override; 38 bool ShouldWait(Thread* thread) const override;
40 void Acquire(Thread* thread) override; 39 void Acquire(Thread* thread) override;
@@ -47,6 +46,11 @@ public:
47private: 46private:
48 Event(); 47 Event();
49 ~Event() override; 48 ~Event() override;
49
50 ResetType reset_type; ///< Current ResetType
51
52 bool signaled; ///< Whether the event has already been signaled
53 std::string name; ///< Name of event (optional)
50}; 54};
51 55
52} // namespace Kernel 56} // namespace Kernel