mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:27:34 +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,9 +7,9 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/CircularDeque.h>
|
||||
#include <AK/WeakPtr.h>
|
||||
#include <Kernel/Devices/CharacterDevice.h>
|
||||
#include <Kernel/DoubleBuffer.h>
|
||||
#include <Kernel/Library/LockWeakPtr.h>
|
||||
#include <Kernel/ProcessGroup.h>
|
||||
#include <Kernel/UnixTypes.h>
|
||||
|
||||
|
@ -89,8 +89,8 @@ private:
|
|||
// FIXME: use something like AK::Bitmap but which takes a size template parameter
|
||||
u8 m_special_character_bitmask[TTY_BUFFER_SIZE / 8];
|
||||
|
||||
WeakPtr<Process> m_original_process_parent;
|
||||
WeakPtr<ProcessGroup> m_pg;
|
||||
LockWeakPtr<Process> m_original_process_parent;
|
||||
LockWeakPtr<ProcessGroup> m_pg;
|
||||
termios m_termios;
|
||||
unsigned short m_rows { 0 };
|
||||
unsigned short m_columns { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue