1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:58:11 +00:00

Kernel: Rename Thread::clone() => try_clone() and propagate errors

This commit is contained in:
Andreas Kling 2021-09-04 21:49:08 +02:00
parent cfc1a628d5
commit 5d5a3708c4
3 changed files with 20 additions and 18 deletions

View file

@ -1101,7 +1101,7 @@ public:
return !m_is_joinable;
}
RefPtr<Thread> clone(Process&);
KResultOr<NonnullRefPtr<Thread>> try_clone(Process&);
template<IteratorFunction<Thread&> Callback>
static IterationDecision for_each_in_state(State, Callback);