mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Kernel: Rename Lock to Mutex
Let's be explicit about what kind of lock this is meant to be.
This commit is contained in:
@@ -11,11 +11,11 @@ namespace Kernel {
|
||||
KResultOr<FlatPtr> Process::sys$uname(Userspace<utsname*> user_buf)
|
||||
{
|
||||
extern String* g_hostname;
|
||||
extern Lock* g_hostname_lock;
|
||||
extern Mutex* g_hostname_lock;
|
||||
|
||||
REQUIRE_PROMISE(stdio);
|
||||
|
||||
Locker locker(*g_hostname_lock, Lock::Mode::Shared);
|
||||
Locker locker(*g_hostname_lock, Mutex::Mode::Shared);
|
||||
if (g_hostname->length() + 1 > sizeof(utsname::nodename))
|
||||
return ENAMETOOLONG;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user