mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
Kernel: Rename Socket::lock() => Socket::mutex()
"lock" is ambiguous (verb vs noun) while "mutex" is not.
This commit is contained in:
parent
0a7efb7d7b
commit
ed0e64943f
6 changed files with 24 additions and 24 deletions
|
@ -238,7 +238,7 @@ KResult LocalSocket::connect(FileDescription& description, Userspace<const socka
|
|||
|
||||
KResult LocalSocket::listen(size_t backlog)
|
||||
{
|
||||
MutexLocker locker(lock());
|
||||
MutexLocker locker(mutex());
|
||||
if (type() != SOCK_STREAM)
|
||||
return set_so_error(EOPNOTSUPP);
|
||||
set_backlog(backlog);
|
||||
|
@ -505,7 +505,7 @@ NonnullRefPtrVector<FileDescription>& LocalSocket::sendfd_queue_for(const FileDe
|
|||
|
||||
KResult LocalSocket::sendfd(const FileDescription& socket_description, FileDescription& passing_description)
|
||||
{
|
||||
MutexLocker locker(lock());
|
||||
MutexLocker locker(mutex());
|
||||
auto role = this->role(socket_description);
|
||||
if (role != Role::Connected && role != Role::Accepted)
|
||||
return set_so_error(EINVAL);
|
||||
|
@ -520,7 +520,7 @@ KResult LocalSocket::sendfd(const FileDescription& socket_description, FileDescr
|
|||
|
||||
KResultOr<NonnullRefPtr<FileDescription>> LocalSocket::recvfd(const FileDescription& socket_description)
|
||||
{
|
||||
MutexLocker locker(lock());
|
||||
MutexLocker locker(mutex());
|
||||
auto role = this->role(socket_description);
|
||||
if (role != Role::Connected && role != Role::Accepted)
|
||||
return set_so_error(EINVAL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue