mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:58:13 +00:00
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&&.
This commit is contained in:
parent
80a6df9022
commit
705cd2491c
5 changed files with 49 additions and 54 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue