mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-30 19:54:17 +01:00
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.
This commit is contained in:
parent
1ac45342dd
commit
2feb1a8ba6
@ -31,10 +31,9 @@ public:
|
|||||||
return HANDLE_TYPE;
|
return HANDLE_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
ResetType reset_type; ///< Current ResetType
|
ResetType GetResetType() const {
|
||||||
|
return reset_type;
|
||||||
bool signaled; ///< Whether the event has already been signaled
|
}
|
||||||
std::string name; ///< Name of event (optional)
|
|
||||||
|
|
||||||
bool ShouldWait(Thread* thread) const override;
|
bool ShouldWait(Thread* thread) const override;
|
||||||
void Acquire(Thread* thread) override;
|
void Acquire(Thread* thread) override;
|
||||||
@ -47,6 +46,11 @@ public:
|
|||||||
private:
|
private:
|
||||||
Event();
|
Event();
|
||||||
~Event() override;
|
~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
|
} // namespace Kernel
|
||||||
|
@ -316,7 +316,7 @@ std::vector<std::unique_ptr<WaitTreeItem>> WaitTreeEvent::GetChildren() const {
|
|||||||
|
|
||||||
list.push_back(std::make_unique<WaitTreeText>(
|
list.push_back(std::make_unique<WaitTreeText>(
|
||||||
tr("reset type = %1")
|
tr("reset type = %1")
|
||||||
.arg(GetResetTypeQString(static_cast<const Kernel::Event&>(object).reset_type))));
|
.arg(GetResetTypeQString(static_cast<const Kernel::Event&>(object).GetResetType()))));
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user