Kernel: Make Inodes use the new lock
Also remove old lock from TTY since it can just use the one Inode already has.
This commit is contained in:
@@ -121,9 +121,10 @@ namespace Kernel
|
||||
virtual BAN::ErrorOr<void> chmod_impl(mode_t) { return BAN::Error::from_errno(ENOTSUP); }
|
||||
virtual bool has_data_impl() const { dwarnln("nonblock not supported"); return true; }
|
||||
|
||||
private:
|
||||
mutable RecursiveSpinLock m_lock;
|
||||
protected:
|
||||
mutable RecursivePrioritySpinLock m_lock;
|
||||
|
||||
private:
|
||||
BAN::WeakPtr<SharedFileData> m_shared_region;
|
||||
friend class FileBackedRegion;
|
||||
};
|
||||
|
||||
@@ -56,8 +56,6 @@ namespace Kernel
|
||||
void do_backspace();
|
||||
|
||||
protected:
|
||||
mutable Kernel::RecursiveSpinLock m_lock;
|
||||
|
||||
TerminalDriver::Color m_foreground { TerminalColor::BRIGHT_WHITE };
|
||||
TerminalDriver::Color m_background { TerminalColor::BLACK };
|
||||
termios m_termios;
|
||||
|
||||
Reference in New Issue
Block a user