From 4d0fd41d249412cc8b544ecdde7b4e8223fd0390 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sat, 15 Jun 2019 12:14:49 -0400 Subject: [PATCH] kernel/lock.h: Reorder function declarations so the comment is correct. --- headers/private/kernel/lock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headers/private/kernel/lock.h b/headers/private/kernel/lock.h index 004a0b5fb0..bcc53c54d9 100644 --- a/headers/private/kernel/lock.h +++ b/headers/private/kernel/lock.h @@ -137,8 +137,8 @@ extern void mutex_init(mutex* lock, const char* name); // name is *not* cloned nor freed in mutex_destroy() extern void mutex_init_etc(mutex* lock, const char* name, uint32 flags); extern void mutex_destroy(mutex* lock); -extern status_t mutex_switch_lock(mutex* from, mutex* to); extern void mutex_transfer_lock(mutex* lock, thread_id thread); +extern status_t mutex_switch_lock(mutex* from, mutex* to); // Unlocks "from" and locks "to" such that unlocking and starting to wait // for the lock is atomically. I.e. if "from" guards the object "to" belongs // to, the operation is safe as long as "from" is held while destroying