From f1cea1f1526dd276bfc5546b0d6a2fcf2a40e218 Mon Sep 17 00:00:00 2001
From: Max Kellermann <mk@cm4all.com>
Date: Mon, 30 Jan 2023 12:16:39 +0100
Subject: [PATCH] util/IntrusiveHashSet: add unlink(), is_linked()

---
 src/util/IntrusiveHashSet.hxx | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/util/IntrusiveHashSet.hxx b/src/util/IntrusiveHashSet.hxx
index c222a88e7..9f1a3ede1 100644
--- a/src/util/IntrusiveHashSet.hxx
+++ b/src/util/IntrusiveHashSet.hxx
@@ -41,6 +41,14 @@ struct IntrusiveHashSetHook {
 	using SiblingsHook = IntrusiveListHook<mode>;
 
 	SiblingsHook intrusive_hash_set_siblings;
+
+	void unlink() noexcept {
+		intrusive_hash_set_siblings.unlink();
+	}
+
+	bool is_linked() const noexcept {
+		return intrusive_hash_set_siblings.is_linked();
+	}
 };
 
 /**