summaryrefslogtreecommitdiff
path: root/Kernel/Thread.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-07 13:39:11 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-07 13:53:14 +0200
commit4a9c18afb9b9c7fde698e93700e661d66e3ed34d (patch)
treebe50cd7629139e1c3d6c7df5bcffa7a0d5a1e898 /Kernel/Thread.h
parentdbd639a2d8d288691e6cffd29e4ff2ec0bae6982 (diff)
downloadserenity-4a9c18afb9b9c7fde698e93700e661d66e3ed34d.zip
Kernel: Rename FileDescription => OpenFileDescription
Dr. POSIX really calls these "open file description", not just "file description", so let's call them exactly that. :^)
Diffstat (limited to 'Kernel/Thread.h')
-rw-r--r--Kernel/Thread.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/Kernel/Thread.h b/Kernel/Thread.h
index 9733ed9f7b..a500aa0790 100644
--- a/Kernel/Thread.h
+++ b/Kernel/Thread.h
@@ -606,39 +606,39 @@ public:
virtual bool unblock_if_conditions_are_met(bool, void*) = 0;
};
- class FileDescriptionBlocker : public FileBlocker {
+ class OpenFileDescriptionBlocker : public FileBlocker {
public:
- const FileDescription& blocked_description() const;
+ const OpenFileDescription& blocked_description() const;
virtual bool unblock_if_conditions_are_met(bool, void*) override;
virtual void will_unblock_immediately_without_blocking(UnblockImmediatelyReason) override;
virtual bool setup_blocker() override;
protected:
- explicit FileDescriptionBlocker(FileDescription&, BlockFlags, BlockFlags&);
+ explicit OpenFileDescriptionBlocker(OpenFileDescription&, BlockFlags, BlockFlags&);
private:
- NonnullRefPtr<FileDescription> m_blocked_description;
+ NonnullRefPtr<OpenFileDescription> m_blocked_description;
const BlockFlags m_flags;
BlockFlags& m_unblocked_flags;
bool m_did_unblock { false };
};
- class AcceptBlocker final : public FileDescriptionBlocker {
+ class AcceptBlocker final : public OpenFileDescriptionBlocker {
public:
- explicit AcceptBlocker(FileDescription&, BlockFlags&);
+ explicit AcceptBlocker(OpenFileDescription&, BlockFlags&);
virtual StringView state_string() const override { return "Accepting"sv; }
};
- class ConnectBlocker final : public FileDescriptionBlocker {
+ class ConnectBlocker final : public OpenFileDescriptionBlocker {
public:
- explicit ConnectBlocker(FileDescription&, BlockFlags&);
+ explicit ConnectBlocker(OpenFileDescription&, BlockFlags&);
virtual StringView state_string() const override { return "Connecting"sv; }
};
- class WriteBlocker final : public FileDescriptionBlocker {
+ class WriteBlocker final : public OpenFileDescriptionBlocker {
public:
- explicit WriteBlocker(FileDescription&, BlockFlags&);
+ explicit WriteBlocker(OpenFileDescription&, BlockFlags&);
virtual StringView state_string() const override { return "Writing"sv; }
virtual const BlockTimeout& override_timeout(const BlockTimeout&) override;
@@ -646,9 +646,9 @@ public:
BlockTimeout m_timeout;
};
- class ReadBlocker final : public FileDescriptionBlocker {
+ class ReadBlocker final : public OpenFileDescriptionBlocker {
public:
- explicit ReadBlocker(FileDescription&, BlockFlags&);
+ explicit ReadBlocker(OpenFileDescription&, BlockFlags&);
virtual StringView state_string() const override { return "Reading"sv; }
virtual const BlockTimeout& override_timeout(const BlockTimeout&) override;
@@ -676,7 +676,7 @@ public:
class SelectBlocker final : public FileBlocker {
public:
struct FDInfo {
- NonnullRefPtr<FileDescription> description;
+ NonnullRefPtr<OpenFileDescription> description;
BlockFlags block_flags { BlockFlags::None };
BlockFlags unblocked_flags { BlockFlags::None };
};