util/IntrusiveHashSet: add unlink(), is_linked()

This commit is contained in:
Max Kellermann 2023-01-30 12:16:39 +01:00 committed by Max Kellermann
parent 02f5698868
commit f1cea1f152

View File

@ -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();
}
};
/**