summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/semaphore.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-01-07 22:52:23 +0100
committerbunnei <bunneidev@gmail.com>2018-01-07 22:52:23 +0100
commit4e33b4b42f404ff6250df15f1a48ed96ce839b77 (patch)
treeea823ee6866e9c9a2e694d0e58c63ddb43ecf92f /src/core/hle/kernel/semaphore.h
parentwait_object: Refactor to allow waking up a single thread. (diff)
downloadyuzu-4e33b4b42f404ff6250df15f1a48ed96ce839b77.tar
yuzu-4e33b4b42f404ff6250df15f1a48ed96ce839b77.tar.gz
yuzu-4e33b4b42f404ff6250df15f1a48ed96ce839b77.tar.bz2
yuzu-4e33b4b42f404ff6250df15f1a48ed96ce839b77.tar.lz
yuzu-4e33b4b42f404ff6250df15f1a48ed96ce839b77.tar.xz
yuzu-4e33b4b42f404ff6250df15f1a48ed96ce839b77.tar.zst
yuzu-4e33b4b42f404ff6250df15f1a48ed96ce839b77.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/semaphore.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/semaphore.h b/src/core/hle/kernel/semaphore.h
index 9cad4450a..e80230cac 100644
--- a/src/core/hle/kernel/semaphore.h
+++ b/src/core/hle/kernel/semaphore.h
@@ -50,11 +50,11 @@ public:
void Acquire(Thread* thread) override;
/**
- * Releases a certain number of slots from a semaphore.
- * @param release_count The number of slots to release
- * @return The number of free slots the semaphore had before this call
+ * Releases a slot from a semaphore.
+ * @param target The number of threads to wakeup, -1 is all.
+ * @return ResultCode indicating if the operation succeeded.
*/
- ResultVal<s32> Release(s32 release_count);
+ ResultCode Release(s32 target);
private:
Semaphore();