diff options
author | Andreas Kling <awesomekling@gmail.com> | 2020-01-12 20:09:44 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-12 20:09:44 +0100 |
commit | 14d4b1058e77f099136c8eb790f514292fab6a2a (patch) | |
tree | 222de79e6ebceaeb3083fc4d58d23e784bcc543f /Kernel/FileSystem/FileDescription.h | |
parent | 9513f549327e9dda110e4a7baf462b047ff71b5d (diff) | |
download | serenity-14d4b1058e77f099136c8eb790f514292fab6a2a.zip |
Kernel: Add a basic lock to FileDescription
Let's prevent two processes sharing a FileDescription from messing with
it at the same time for now.
Diffstat (limited to 'Kernel/FileSystem/FileDescription.h')
-rw-r--r-- | Kernel/FileSystem/FileDescription.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/FileSystem/FileDescription.h b/Kernel/FileSystem/FileDescription.h index d56d8f3619..0375432a55 100644 --- a/Kernel/FileSystem/FileDescription.h +++ b/Kernel/FileSystem/FileDescription.h @@ -140,4 +140,6 @@ private: bool m_should_append { false }; bool m_direct { false }; FIFO::Direction m_fifo_direction { FIFO::Direction::Neither }; + + Lock m_lock { "FileDescription" }; }; |