diff options
author | Andreas Kling <kling@serenityos.org> | 2021-09-03 00:07:29 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-03 02:36:09 +0200 |
commit | eaf88cc78a34edd9eab7f5bd5e29d30a10d3f565 (patch) | |
tree | 962179e77d781b80988412db54832791c476dd41 /Kernel/Thread.cpp | |
parent | 43a800a83857709b0adca35f2f3a228680431ed0 (diff) | |
download | serenity-eaf88cc78a34edd9eab7f5bd5e29d30a10d3f565.zip |
AK: Rename create<T> => make_ref_counted<T>
And also try_create<T> => try_make_ref_counted<T>.
A global "create" was a bit much. The new name matches make<T> better,
which we've used for making single-owner objects since forever.
Diffstat (limited to 'Kernel/Thread.cpp')
-rw-r--r-- | Kernel/Thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Thread.cpp b/Kernel/Thread.cpp index 8d14c8b959..bf45dea28a 100644 --- a/Kernel/Thread.cpp +++ b/Kernel/Thread.cpp @@ -44,7 +44,7 @@ KResultOr<NonnullRefPtr<Thread>> Thread::try_create(NonnullRefPtr<Process> proce return ENOMEM; kernel_stack_region->set_stack(true); - auto block_timer = AK::try_create<Timer>(); + auto block_timer = try_make_ref_counted<Timer>(); if (!block_timer) return ENOMEM; |