aboutsummaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-12 01:09:21 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-12 01:09:21 +0200
commit1cf67399a9bfa13ab79974e345eb87fa70753da1 (patch)
tree59ca8415b3994c393aac55b4357491ba60625db1 /kern
parent62dcee5f04552bf013454f219d37454895e7d32d (diff)
downloadgnumach-1cf67399a9bfa13ab79974e345eb87fa70753da1.tar.gz
gnumach-1cf67399a9bfa13ab79974e345eb87fa70753da1.tar.bz2
gnumach-1cf67399a9bfa13ab79974e345eb87fa70753da1.zip
lock: Rename simple_unlock version with information to _simple_unlock
For coherency with the rest of the implementations
Diffstat (limited to 'kern')
-rw-r--r--kern/lock.c2
-rw-r--r--kern/lock.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/kern/lock.c b/kern/lock.c
index f076c328..43281147 100644
--- a/kern/lock.c
+++ b/kern/lock.c
@@ -204,7 +204,7 @@ boolean_t _simple_lock_try(
return TRUE;
}
-void simple_unlock(
+void _simple_unlock(
simple_lock_t l)
{
assert(l->lock_data != 0);
diff --git a/kern/lock.h b/kern/lock.h
index 70f825c9..3e55d1d4 100644
--- a/kern/lock.h
+++ b/kern/lock.h
@@ -99,7 +99,7 @@ class simple_lock_data_t name = SIMPLE_LOCK_INITIALIZER(&name);
extern void simple_lock_init(simple_lock_t);
extern void _simple_lock(simple_lock_t,
const char *, const char *);
-extern void simple_unlock(simple_lock_t);
+extern void _simple_unlock(simple_lock_t);
extern boolean_t _simple_lock_try(simple_lock_t,
const char *, const char *);
@@ -110,6 +110,7 @@ extern boolean_t _simple_lock_try(simple_lock_t,
#define LOCATION __FILE__ ":" STR(__LINE__)
#define simple_lock(lock) _simple_lock((lock), #lock, LOCATION)
+#define simple_unlock(lock) _simple_unlock((lock), #lock, LOCATION)
#define simple_lock_try(lock) _simple_lock_try((lock), #lock, LOCATION)
#define simple_lock_pause()