diff options
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/event.cpp | 11 | ||||
-rw-r--r-- | src/core/hle/kernel/event.h | 7 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/core/hle/kernel/event.cpp b/src/core/hle/kernel/event.cpp index cc15ba9bc..e85f39f0d 100644 --- a/src/core/hle/kernel/event.cpp +++ b/src/core/hle/kernel/event.cpp @@ -51,6 +51,17 @@ public: }; /** + * Changes whether an event is locked or not + * @param handle Handle to event to change + * @param locked Boolean locked value to set event + */ +void SetEventLocked(const Handle handle, const bool locked) { + Event* evt = g_object_pool.GetFast<Event>(handle); + evt->locked = locked; + return; +} + +/** * Clears an event * @param handle Handle to event to clear * @return Result of operation, 0 on success, otherwise error code diff --git a/src/core/hle/kernel/event.h b/src/core/hle/kernel/event.h index 2ef1bd65b..0bcfe00b7 100644 --- a/src/core/hle/kernel/event.h +++ b/src/core/hle/kernel/event.h @@ -12,6 +12,13 @@ namespace Kernel { /** + * Changes whether an event is locked or not + * @param handle Handle to event to change + * @param locked Boolean locked value to set event + */ +void SetEventLocked(const Handle handle, const bool locked) + +/** * Clears an event * @param handle Handle to event to clear * @return Result of operation, 0 on success, otherwise error code |