1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00

Kernel: Tidy up SharedBuffer interface

Make is_shared_with() const and hide private members.
This commit is contained in:
Shannon Booth 2020-05-16 13:01:34 +12:00 committed by Andreas Kling
parent f7ae66cee3
commit 8c1b01e79b
2 changed files with 3 additions and 2 deletions

View file

@ -54,7 +54,7 @@ void SharedBuffer::sanity_check(const char* what)
}
}
bool SharedBuffer::is_shared_with(pid_t peer_pid)
bool SharedBuffer::is_shared_with(pid_t peer_pid) const
{
LOCKER(shared_buffers().lock(), Lock::Mode::Shared);
if (m_global)