summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-05-28 04:14:00 +0200
committerbunnei <ericbunnie@gmail.com>2014-05-28 04:14:00 +0200
commitbeea6f054ae0bd40d1a564aa586735b81f2bf662 (patch)
treeb6265947fc477c74991680af77da9d4406c70a69 /src/core
parentkernel: added event module to support creation of CTR "Event" objects (diff)
downloadyuzu-beea6f054ae0bd40d1a564aa586735b81f2bf662.tar
yuzu-beea6f054ae0bd40d1a564aa586735b81f2bf662.tar.gz
yuzu-beea6f054ae0bd40d1a564aa586735b81f2bf662.tar.bz2
yuzu-beea6f054ae0bd40d1a564aa586735b81f2bf662.tar.lz
yuzu-beea6f054ae0bd40d1a564aa586735b81f2bf662.tar.xz
yuzu-beea6f054ae0bd40d1a564aa586735b81f2bf662.tar.zst
yuzu-beea6f054ae0bd40d1a564aa586735b81f2bf662.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/event.cpp11
-rw-r--r--src/core/hle/kernel/event.h7
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