mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +00:00
Kernel: Make self-contained locking smart pointers their own classes
Until now, our kernel has reimplemented a number of AK classes to provide automatic internal locking: - RefPtr - NonnullRefPtr - WeakPtr - Weakable This patch renames the Kernel classes so that they can coexist with the original AK classes: - RefPtr => LockRefPtr - NonnullRefPtr => NonnullLockRefPtr - WeakPtr => LockWeakPtr - Weakable => LockWeakable The goal here is to eventually get rid of the Lock* classes in favor of using external locking.
This commit is contained in:
parent
e475263113
commit
11eee67b85
360 changed files with 1703 additions and 1672 deletions
|
@ -7,8 +7,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/NonnullOwnPtr.h>
|
||||
#include <AK/NonnullRefPtr.h>
|
||||
#include <AK/NonnullRefPtrVector.h>
|
||||
#include <AK/Types.h>
|
||||
#include <Kernel/Bus/PCI/Definitions.h>
|
||||
#include <Kernel/Graphics/Console/Console.h>
|
||||
|
@ -16,6 +14,8 @@
|
|||
#include <Kernel/Graphics/Generic/DisplayConnector.h>
|
||||
#include <Kernel/Graphics/GenericGraphicsAdapter.h>
|
||||
#include <Kernel/Graphics/VirtIOGPU/GraphicsAdapter.h>
|
||||
#include <Kernel/Library/NonnullLockRefPtr.h>
|
||||
#include <Kernel/Library/NonnullLockRefPtrVector.h>
|
||||
#include <Kernel/Memory/Region.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
@ -37,7 +37,7 @@ public:
|
|||
void disable_vga_text_mode_console_cursor();
|
||||
void disable_vga_emulation_access_permanently();
|
||||
|
||||
RefPtr<Graphics::Console> console() const { return m_console; }
|
||||
LockRefPtr<Graphics::Console> console() const { return m_console; }
|
||||
void set_console(Graphics::Console&);
|
||||
|
||||
void deactivate_graphical_mode();
|
||||
|
@ -50,11 +50,11 @@ private:
|
|||
|
||||
void initialize_preset_resolution_generic_display_connector();
|
||||
|
||||
NonnullRefPtrVector<GenericGraphicsAdapter> m_graphics_devices;
|
||||
RefPtr<Graphics::Console> m_console;
|
||||
NonnullLockRefPtrVector<GenericGraphicsAdapter> m_graphics_devices;
|
||||
LockRefPtr<Graphics::Console> m_console;
|
||||
|
||||
// Note: This is only used when booting with kernel commandline that includes "graphics_subsystem_mode=limited"
|
||||
RefPtr<GenericDisplayConnector> m_preset_resolution_generic_display_connector;
|
||||
LockRefPtr<GenericDisplayConnector> m_preset_resolution_generic_display_connector;
|
||||
|
||||
unsigned m_current_minor_number { 0 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue