summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/semaphore.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2014-12-04 00:49:51 +0100
committerSubv <subv2112@gmail.com>2014-12-13 19:40:09 +0100
commit82c84883a5d10bd6c9a3516fe16b996c5333360e (patch)
tree79016ba73405e93affa092432c8c0b86bd917aac /src/core/hle/kernel/semaphore.h
parentMerge pull request #274 from lioncash/kernel (diff)
downloadyuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.tar
yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.tar.gz
yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.tar.bz2
yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.tar.lz
yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.tar.xz
yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.tar.zst
yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/semaphore.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/core/hle/kernel/semaphore.h b/src/core/hle/kernel/semaphore.h
new file mode 100644
index 000000000..6a686db2e
--- /dev/null
+++ b/src/core/hle/kernel/semaphore.h
@@ -0,0 +1,22 @@
+// Copyright 2014 Citra Emulator Project
+// Licensed under GPLv2+
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include "common/common_types.h"
+
+#include "core/hle/kernel/kernel.h"
+
+namespace Kernel {
+
+/**
+ * Creates a semaphore
+ * @param initial_count number of reserved entries in the semaphore
+ * @param max_count maximum number of holders the semaphore can have
+ * @param name Optional name of semaphore
+ * @return Handle to newly created object
+ */
+Handle CreateSemaphore(u32 initial_count, u32 max_count, const std::string& name = "Unknown");
+
+} // namespace