diff options
author | bunnei <bunneidev@gmail.com> | 2021-01-30 07:48:06 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-02-05 23:00:36 +0100 |
commit | e86a7e36912b6f3fc64a594338d3c1ac768e3bb8 (patch) | |
tree | 28c2d60179f1f4f798b5a572af2f8c6685fa4940 /src/core/hle/kernel/readable_event.cpp | |
parent | Merge pull request #5867 from Morph1984/am-GetHealthWarningDisappearedSystemEvent (diff) | |
download | yuzu-e86a7e36912b6f3fc64a594338d3c1ac768e3bb8.tar yuzu-e86a7e36912b6f3fc64a594338d3c1ac768e3bb8.tar.gz yuzu-e86a7e36912b6f3fc64a594338d3c1ac768e3bb8.tar.bz2 yuzu-e86a7e36912b6f3fc64a594338d3c1ac768e3bb8.tar.lz yuzu-e86a7e36912b6f3fc64a594338d3c1ac768e3bb8.tar.xz yuzu-e86a7e36912b6f3fc64a594338d3c1ac768e3bb8.tar.zst yuzu-e86a7e36912b6f3fc64a594338d3c1ac768e3bb8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/k_readable_event.cpp (renamed from src/core/hle/kernel/readable_event.cpp) | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/hle/kernel/readable_event.cpp b/src/core/hle/kernel/k_readable_event.cpp index 596d01479..e9e191bc6 100644 --- a/src/core/hle/kernel/readable_event.cpp +++ b/src/core/hle/kernel/k_readable_event.cpp @@ -6,18 +6,18 @@ #include "common/assert.h" #include "common/logging/log.h" #include "core/hle/kernel/errors.h" +#include "core/hle/kernel/k_readable_event.h" #include "core/hle/kernel/k_scheduler.h" #include "core/hle/kernel/k_thread.h" #include "core/hle/kernel/kernel.h" #include "core/hle/kernel/object.h" -#include "core/hle/kernel/readable_event.h" namespace Kernel { -ReadableEvent::ReadableEvent(KernelCore& kernel) : KSynchronizationObject{kernel} {} -ReadableEvent::~ReadableEvent() = default; +KReadableEvent::KReadableEvent(KernelCore& kernel) : KSynchronizationObject{kernel} {} +KReadableEvent::~KReadableEvent() = default; -void ReadableEvent::Signal() { +void KReadableEvent::Signal() { if (is_signaled) { return; } @@ -26,17 +26,17 @@ void ReadableEvent::Signal() { NotifyAvailable(); } -bool ReadableEvent::IsSignaled() const { +bool KReadableEvent::IsSignaled() const { ASSERT(kernel.GlobalSchedulerContext().IsLocked()); return is_signaled; } -void ReadableEvent::Clear() { +void KReadableEvent::Clear() { is_signaled = false; } -ResultCode ReadableEvent::Reset() { +ResultCode KReadableEvent::Reset() { KScopedSchedulerLock lock(kernel); if (!is_signaled) { LOG_TRACE(Kernel, "Handle is not signaled! object_id={}, object_type={}, object_name={}", |