diff options
author | Tom <tomut@yahoo.com> | 2020-06-28 15:34:31 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-01 12:07:01 +0200 |
commit | 16783bd14d5284542205a50c441562c19174f101 (patch) | |
tree | 433c7802b5d8dcb0d2bfe0da8f25dbc5145d6ddf /Kernel/Net/Socket.cpp | |
parent | cdc78515b6e12f6bf8b62cf311d8dde12e191cbd (diff) | |
download | serenity-16783bd14d5284542205a50c441562c19174f101.zip |
Kernel: Turn Thread::current and Process::current into functions
This allows us to query the current thread and process on a
per processor basis
Diffstat (limited to 'Kernel/Net/Socket.cpp')
-rw-r--r-- | Kernel/Net/Socket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Net/Socket.cpp b/Kernel/Net/Socket.cpp index 3b8cfaa1f1..99c17d066a 100644 --- a/Kernel/Net/Socket.cpp +++ b/Kernel/Net/Socket.cpp @@ -55,7 +55,7 @@ Socket::Socket(int domain, int type, int protocol) , m_type(type) , m_protocol(protocol) { - auto& process = *Process::current; + auto& process = *Process::current(); m_origin = { process.pid(), process.uid(), process.gid() }; } @@ -82,7 +82,7 @@ RefPtr<Socket> Socket::accept() #endif auto client = m_pending.take_first(); ASSERT(!client->is_connected()); - auto& process = *Process::current; + auto& process = *Process::current(); client->m_acceptor = { process.pid(), process.uid(), process.gid() }; client->m_connected = true; client->m_role = Role::Accepted; |