1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:18:11 +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

@ -56,7 +56,7 @@ private:
size_t m_framebuffer_height { 0 };
Spinlock m_activation_lock;
mutable Mutex m_buffer_offset_lock;
mutable Spinlock m_buffer_offset_lock;
RefPtr<Memory::AnonymousVMObject> m_real_framebuffer_vmobject;
RefPtr<Memory::AnonymousVMObject> m_swapped_framebuffer_vmobject;