summaryrefslogtreecommitdiff
path: root/Kernel/Net/TCPSocket.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-29 13:10:55 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-29 22:19:42 +0200
commited0e64943f7b779d2343471c76c997e4a6d3a438 (patch)
tree7e10d4176aa9f480a92b6dbd1cafa259a2c0c5ea /Kernel/Net/TCPSocket.cpp
parent0a7efb7d7b8b2ca804c61c24c484d773c76c3ddb (diff)
downloadserenity-ed0e64943f7b779d2343471c76c997e4a6d3a438.zip
Kernel: Rename Socket::lock() => Socket::mutex()
"lock" is ambiguous (verb vs noun) while "mutex" is not.
Diffstat (limited to 'Kernel/Net/TCPSocket.cpp')
-rw-r--r--Kernel/Net/TCPSocket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Net/TCPSocket.cpp b/Kernel/Net/TCPSocket.cpp
index be995302e0..43c9ab1507 100644
--- a/Kernel/Net/TCPSocket.cpp
+++ b/Kernel/Net/TCPSocket.cpp
@@ -398,7 +398,7 @@ KResult TCPSocket::protocol_listen(bool did_allocate_port)
KResult TCPSocket::protocol_connect(FileDescription& description, ShouldBlock should_block)
{
- MutexLocker locker(lock());
+ MutexLocker locker(mutex());
auto routing_decision = route_to(peer_address(), local_address());
if (routing_decision.is_zero())
@@ -497,7 +497,7 @@ void TCPSocket::shut_down_for_writing()
KResult TCPSocket::close()
{
- MutexLocker socket_locker(lock());
+ MutexLocker locker(mutex());
auto result = IPv4Socket::close();
if (state() == State::CloseWait) {
dbgln_if(TCP_SOCKET_DEBUG, " Sending FIN from CloseWait and moving into LastAck");