summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/File.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-22 15:59:47 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-23 00:02:09 +0200
commit85546af4171c37b6569ea723c3bf28eda6e2894d (patch)
treec19f7b37dce99195d4e25f31b0ee17c6f3ab0f0f /Kernel/FileSystem/File.h
parent05e1b196e9999ccd67c73c877acd786468d167c5 (diff)
downloadserenity-85546af4171c37b6569ea723c3bf28eda6e2894d.zip
Kernel: Rename Thread::BlockCondition to BlockerSet
This class represents a set of Thread::Blocker objects attached to something that those blockers are waiting on.
Diffstat (limited to 'Kernel/FileSystem/File.h')
-rw-r--r--Kernel/FileSystem/File.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Kernel/FileSystem/File.h b/Kernel/FileSystem/File.h
index 11ab5269fa..dc5977ee70 100644
--- a/Kernel/FileSystem/File.h
+++ b/Kernel/FileSystem/File.h
@@ -21,9 +21,9 @@ namespace Kernel {
class File;
-class FileBlockCondition final : public Thread::BlockCondition {
+class FileBlockerSet final : public Thread::BlockerSet {
public:
- FileBlockCondition() { }
+ FileBlockerSet() { }
virtual bool should_add_blocker(Thread::Blocker& b, void* data) override
{
@@ -112,7 +112,7 @@ public:
virtual bool is_socket() const { return false; }
virtual bool is_inode_watcher() const { return false; }
- virtual FileBlockCondition& block_condition() { return m_block_condition; }
+ virtual FileBlockerSet& blocker_set() { return m_blocker_set; }
size_t attach_count() const { return m_attach_count; }
@@ -138,10 +138,10 @@ private:
ALWAYS_INLINE void do_evaluate_block_conditions()
{
VERIFY(!Processor::current_in_irq());
- block_condition().unblock();
+ blocker_set().unblock();
}
- FileBlockCondition m_block_condition;
+ FileBlockerSet m_blocker_set;
size_t m_attach_count { 0 };
};