mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 15:19:42 +00:00
Kernel: Remove memory allocations from the new Blocker API
This commit is contained in:
parent
99c5377653
commit
cd76b691fb
Notes:
sideshowbarker
2024-07-19 13:09:12 +09:00
Author: https://github.com/rburchell
Commit: cd76b691fb
Pull-request: https://github.com/SerenityOS/serenity/pull/340
6 changed files with 27 additions and 27 deletions
|
@ -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<Thread::ConnectBlocker>(description);
|
||||
ASSERT(is_connected());
|
||||
return KSuccess;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue