summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/KernelKit/Semaphore.h
diff options
context:
space:
mode:
authorAmlal <amlal@nekernel.org>2025-08-11 09:38:55 +0200
committerAmlal <amlal@nekernel.org>2025-08-11 09:38:55 +0200
commitf3c12b72db9e6983741c0d79fd7f8903c23d93d4 (patch)
tree856a822bef64548ec834392f8cbd23cb65cf21be /dev/kernel/KernelKit/Semaphore.h
parentce35a08ce5624d80cb35c6b03a47fa7c83b560b5 (diff)
feat: Semaphore API has been documented, RTL driver improvements, and better help for fsck.hefs.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/KernelKit/Semaphore.h')
-rw-r--r--dev/kernel/KernelKit/Semaphore.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/dev/kernel/KernelKit/Semaphore.h b/dev/kernel/KernelKit/Semaphore.h
index 705d9f18..f73f36ed 100644
--- a/dev/kernel/KernelKit/Semaphore.h
+++ b/dev/kernel/KernelKit/Semaphore.h
@@ -42,8 +42,8 @@ inline BOOL rtl_sem_release(SemaphoreArr& sem) {
}
/// @brief Initializes the semaphore with an owner and a count of zero.
-/// @param sem
-/// @param owner
+/// @param sem the semaphore array to use.
+/// @param owner the owner to set, could be anything identifitable.
/// @return
inline BOOL rtl_sem_acquire(SemaphoreArr& sem, UInt64 owner) {
if (!owner) {
@@ -60,6 +60,7 @@ inline BOOL rtl_sem_acquire(SemaphoreArr& sem, UInt64 owner) {
/// @brief Waits for the semaphore to be available, blocking until it is.
/// @param sem
/// @param timeout
+/// @param condition condition pointer.
/// @return
inline BOOL rtl_sem_wait(SemaphoreArr& sem, UInt64 owner, UInt64 timeout,
BOOL* condition = nullptr) {