From cd76b691fbeb37977c9579d1a12715ddc10ab6c6 Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Fri, 19 Jul 2019 10:12:50 +0200 Subject: Kernel: Remove memory allocations from the new Blocker API --- Kernel/Net/IPv4Socket.cpp | 2 +- Kernel/Net/TCPSocket.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Kernel/Net') diff --git a/Kernel/Net/IPv4Socket.cpp b/Kernel/Net/IPv4Socket.cpp index 474706b7a2..1be12a55b3 100644 --- a/Kernel/Net/IPv4Socket.cpp +++ b/Kernel/Net/IPv4Socket.cpp @@ -212,7 +212,7 @@ ssize_t IPv4Socket::recvfrom(FileDescription& description, void* buffer, size_t } load_receive_deadline(); - current->block(*new Thread::ReceiveBlocker(description)); + current->block(description); LOCKER(lock()); if (!m_can_read) { diff --git a/Kernel/Net/TCPSocket.cpp b/Kernel/Net/TCPSocket.cpp index 1e803e279a..348f924f28 100644 --- a/Kernel/Net/TCPSocket.cpp +++ b/Kernel/Net/TCPSocket.cpp @@ -162,7 +162,7 @@ KResult TCPSocket::protocol_connect(FileDescription& description, ShouldBlock sh m_state = State::Connecting; if (should_block == ShouldBlock::Yes) { - current->block(*new Thread::ConnectBlocker(description)); + current->block(description); ASSERT(is_connected()); return KSuccess; } -- cgit v1.2.3