1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 17:25:06 +00:00

Kernel: Remove two outdated FIXMEs about the file descriptor table mutex

These functions cannot be called without already holding the relevant
mutex these days, since m_fds is a MutexProtected object. :^)
This commit is contained in:
Andreas Kling 2023-03-06 18:39:25 +01:00
parent 5aa12da959
commit 36b0ecfe9e

View file

@ -941,14 +941,12 @@ LockRefPtr<Thread> Process::create_kernel_thread(void (*entry)(void*), void* ent
void Process::OpenFileDescriptionAndFlags::clear()
{
// FIXME: Verify Process::m_fds_lock is locked!
m_description = nullptr;
m_flags = 0;
}
void Process::OpenFileDescriptionAndFlags::set(NonnullLockRefPtr<OpenFileDescription>&& description, u32 flags)
{
// FIXME: Verify Process::m_fds_lock is locked!
m_description = move(description);
m_flags = flags;
}