mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:27:35 +00:00
SharedBuffer: Fix deadlock on destroy
We were locking the list of references, and then destroying the reference, which made things go a little crazy. It's more straightforward to just remove the per-reference lock: the syscalls all have to lock the full list anyway, so let's just do that and avoid the hassle. While I'm at it, also move the SharedBuffer code out to its own file as it's getting a little long and unwieldly, and Process.cpp is already huge.
This commit is contained in:
parent
d53e54f8bf
commit
6aa77d1999
4 changed files with 170 additions and 150 deletions
|
@ -6,6 +6,7 @@ KERNEL_OBJS = \
|
|||
StdLib.o \
|
||||
Arch/i386/CPU.o \
|
||||
Process.o \
|
||||
SharedBuffer.o \
|
||||
Thread.o \
|
||||
Arch/i386/PIT.o \
|
||||
Devices/KeyboardDevice.o \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue