summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/Plan9FileSystem.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-23 02:09:08 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-23 02:13:04 +0200
commit7006cb82bde1dbcd9465186fd31aa884e679f92c (patch)
tree9504d4c1ae3d4d936e6f5c68af0168c8164c347d /Kernel/FileSystem/Plan9FileSystem.h
parent39474830a94fd812dca51ebe622751e364dc1044 (diff)
downloadserenity-7006cb82bde1dbcd9465186fd31aa884e679f92c.zip
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.
Diffstat (limited to 'Kernel/FileSystem/Plan9FileSystem.h')
-rw-r--r--Kernel/FileSystem/Plan9FileSystem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/Plan9FileSystem.h b/Kernel/FileSystem/Plan9FileSystem.h
index 30788b5d06..36148d536f 100644
--- a/Kernel/FileSystem/Plan9FileSystem.h
+++ b/Kernel/FileSystem/Plan9FileSystem.h
@@ -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; }