1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:17:45 +00:00

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.
This commit is contained in:
Andreas Kling 2020-01-12 20:09:44 +01:00
parent 9513f54932
commit 14d4b1058e
2 changed files with 11 additions and 0 deletions

View file

@ -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" };
};