summaryrefslogtreecommitdiff
path: root/Kernel/Graphics/FramebufferDevice.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-02-03 15:33:29 +0100
committerAndreas Kling <kling@serenityos.org>2022-02-03 16:11:26 +0100
commitca42621be17a85f0ec3513404a6fbce063be370d (patch)
treeb47ba53fb0fbc1695695f9ac53e7c7150f744305 /Kernel/Graphics/FramebufferDevice.h
parentddde9e7ee52b6d5c955ce3bbd4bc46eff5e0ed94 (diff)
downloadserenity-ca42621be17a85f0ec3513404a6fbce063be370d.zip
Kernel: Protect FramebufferDevice with spinlock instead of mutex
Diffstat (limited to 'Kernel/Graphics/FramebufferDevice.h')
-rw-r--r--Kernel/Graphics/FramebufferDevice.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Graphics/FramebufferDevice.h b/Kernel/Graphics/FramebufferDevice.h
index 8846112434..7b1573c5b5 100644
--- a/Kernel/Graphics/FramebufferDevice.h
+++ b/Kernel/Graphics/FramebufferDevice.h
@@ -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;