summaryrefslogtreecommitdiff
path: root/Kernel/Thread.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-07-19 13:19:47 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-19 13:19:47 +0200
commit705cd2491cc0e5bb6b9196901d4ad67c7a4aed5f (patch)
tree2206ac0c5e1e7bfa9049b7d77d99117c829afd69 /Kernel/Thread.cpp
parent80a6df90220981e64e0ca192908163d3a263ffc6 (diff)
downloadserenity-705cd2491cc0e5bb6b9196901d4ad67c7a4aed5f.zip
Kernel: Some small refinements to the thread blockers.
Committing some things my hands did while browsing through this code. - Mark all leaf classes "final". - FileDescriptionBlocker now stores a NonnullRefPtr<FileDescription>. - FileDescriptionBlocker::blocked_description() now returns a reference. - ConditionBlocker takes a Function&&.
Diffstat (limited to 'Kernel/Thread.cpp')
-rw-r--r--Kernel/Thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Thread.cpp b/Kernel/Thread.cpp
index b8fca99784..fafdac3536 100644
--- a/Kernel/Thread.cpp
+++ b/Kernel/Thread.cpp
@@ -110,7 +110,7 @@ void Thread::unblock()
void Thread::block_until(const char* state_string, Function<bool()>&& condition)
{
- block<ConditionBlocker>(state_string, condition);
+ block<ConditionBlocker>(state_string, move(condition));
}
void Thread::block_helper()