mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:25:07 +00:00
Kernel: Rename Blocker::not_blocking(bool) to something more descriptive
Namely, will_unblock_immediately_without_blocking(Reason). This virtual function is called on a blocker *before any block occurs*, if it turns out that we don't need to block the thread after all. This can happens for one of two reasons: - UnblockImmediatelyReason::UnblockConditionAlreadyMet We don't need to block the thread because the condition for unblocking it is already met. - UnblockImmediatelyReason::TimeoutInThePast We don't need to block the thread because a timeout was specified and that timeout is already in the past. This patch does not introduce any behavior changes, it's only meant to clarify this part of the blocking logic.
This commit is contained in:
parent
39474830a9
commit
7006cb82bd
5 changed files with 35 additions and 30 deletions
|
@ -91,7 +91,7 @@ private:
|
|||
}
|
||||
virtual StringView state_string() const override { return "Waiting"sv; }
|
||||
virtual Type blocker_type() const override { return Type::Plan9FS; }
|
||||
virtual void not_blocking(bool) override;
|
||||
virtual void will_unblock_immediately_without_blocking(UnblockImmediatelyReason) override;
|
||||
|
||||
const NonnullRefPtr<ReceiveCompletion>& completion() const { return m_completion; }
|
||||
u16 tag() const { return m_completion->tag; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue