mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 07:57:49 +00:00
Kernel: Move Kernel/Memory/ code into Kernel::Memory namespace
This commit is contained in:
parent
a1d7ebf85a
commit
93d98d4976
153 changed files with 473 additions and 467 deletions
|
@ -16,9 +16,9 @@ namespace Kernel {
|
|||
|
||||
class FutexQueue : public Thread::BlockCondition
|
||||
, public RefCounted<FutexQueue>
|
||||
, public VMObjectDeletedHandler {
|
||||
, public Memory::VMObjectDeletedHandler {
|
||||
public:
|
||||
FutexQueue(FlatPtr user_address_or_offset, VMObject* vmobject = nullptr);
|
||||
FutexQueue(FlatPtr user_address_or_offset, Memory::VMObject* vmobject = nullptr);
|
||||
virtual ~FutexQueue();
|
||||
|
||||
u32 wake_n_requeue(u32, const Function<FutexQueue*()>&, u32, bool&, bool&);
|
||||
|
@ -31,7 +31,7 @@ public:
|
|||
return Thread::current()->block<Thread::FutexBlocker>(timeout, *this, forward<Args>(args)...);
|
||||
}
|
||||
|
||||
virtual void vmobject_deleted(VMObject&) override;
|
||||
virtual void vmobject_deleted(Memory::VMObject&) override;
|
||||
|
||||
bool queue_imminent_wait();
|
||||
void did_remove();
|
||||
|
@ -51,7 +51,7 @@ private:
|
|||
// For private futexes we just use the user space address.
|
||||
// But for global futexes we use the offset into the VMObject
|
||||
const FlatPtr m_user_address_or_offset;
|
||||
WeakPtr<VMObject> m_vmobject;
|
||||
WeakPtr<Memory::VMObject> m_vmobject;
|
||||
const bool m_is_global;
|
||||
size_t m_imminent_waits { 1 }; // We only create this object if we're going to be waiting, so start out with 1
|
||||
bool m_was_removed { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue