summaryrefslogtreecommitdiff
path: root/Kernel/Process.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-25 16:04:08 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-25 16:04:08 +0100
commit15fb917f28505539b05b9b21de0aae7055a5ab2e (patch)
tree3a64297ee2ee684aa03ce095bede85dadb953b31 /Kernel/Process.h
parent2cfcbdc735e7578a22ed2f9ae25492a72abe3f3f (diff)
downloadserenity-15fb917f28505539b05b9b21de0aae7055a5ab2e.zip
Convert more RetainPtr use to Retained.
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r--Kernel/Process.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h
index e63e0929f6..305ac0a789 100644
--- a/Kernel/Process.h
+++ b/Kernel/Process.h
@@ -237,7 +237,7 @@ public:
void set_tty(TTY* tty) { m_tty = tty; }
size_t region_count() const { return m_regions.size(); }
- const Vector<RetainPtr<Region>>& regions() const { return m_regions; }
+ const Vector<Retained<Region>>& regions() const { return m_regions; }
void dump_regions();
void did_schedule() { ++m_times_scheduled; }
@@ -292,7 +292,7 @@ public:
bool has_used_fpu() const { return m_has_used_fpu; }
void set_has_used_fpu(bool b) { m_has_used_fpu = b; }
- Region* allocate_region_with_vmo(LinearAddress, size_t, RetainPtr<VMObject>&&, size_t offset_in_vmo, String&& name, bool is_readable, bool is_writable);
+ Region* allocate_region_with_vmo(LinearAddress, size_t, Retained<VMObject>&&, size_t offset_in_vmo, String&& name, bool is_readable, bool is_writable);
Region* allocate_file_backed_region(LinearAddress, size_t, RetainPtr<Inode>&&, String&& name, bool is_readable, bool is_writable);
Region* allocate_region(LinearAddress, size_t, String&& name, bool is_readable = true, bool is_writable = true, bool commit = true);
bool deallocate_region(Region& region);
@@ -371,7 +371,7 @@ private:
Region* region_from_range(LinearAddress, size_t);
- Vector<RetainPtr<Region>> m_regions;
+ Vector<Retained<Region>> m_regions;
// FIXME: Implement some kind of ASLR?
LinearAddress m_next_region;