1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:28:13 +00:00

Kernel: Protect FramebufferDevice with spinlock instead of mutex

This commit is contained in:
Andreas Kling 2022-02-03 15:33:29 +01:00
parent ddde9e7ee5
commit ca42621be1
5 changed files with 18 additions and 19 deletions

View file

@ -10,7 +10,7 @@
#include <AK/Types.h>
#include <Kernel/Devices/BlockDevice.h>
#include <Kernel/Graphics/GenericGraphicsAdapter.h>
#include <Kernel/Locking/Mutex.h>
#include <Kernel/Locking/Spinlock.h>
#include <LibC/sys/ioctl_numbers.h>
namespace Kernel {
@ -63,9 +63,8 @@ protected:
GenericFramebufferDevice(const GenericGraphicsAdapter&);
mutable WeakPtr<GenericGraphicsAdapter> m_graphics_adapter;
mutable Mutex m_heads_lock;
mutable Mutex m_flushing_lock;
mutable Mutex m_resolution_lock;
mutable Spinlock m_flushing_lock;
mutable Spinlock m_resolution_lock;
};
}