mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
Kernel: Rename FileBlocker::unblock() => unblock_if_conditions_are_met()
Since this may not actually unblock, the old name was very confusing.
This commit is contained in:
parent
68a6d4c30a
commit
e851a77346
3 changed files with 9 additions and 9 deletions
|
@ -29,7 +29,7 @@ public:
|
|||
{
|
||||
VERIFY(b.blocker_type() == Thread::Blocker::Type::File);
|
||||
auto& blocker = static_cast<Thread::FileBlocker&>(b);
|
||||
return !blocker.unblock(true, data);
|
||||
return !blocker.unblock_if_conditions_are_met(true, data);
|
||||
}
|
||||
|
||||
void unblock_all_blockers_whose_conditions_are_met()
|
||||
|
@ -38,7 +38,7 @@ public:
|
|||
BlockerSet::unblock_all_blockers_whose_conditions_are_met_locked([&](auto& b, void* data, bool&) {
|
||||
VERIFY(b.blocker_type() == Thread::Blocker::Type::File);
|
||||
auto& blocker = static_cast<Thread::FileBlocker&>(b);
|
||||
return blocker.unblock(false, data);
|
||||
return blocker.unblock_if_conditions_are_met(false, data);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue