mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +00:00
Kernel: Use IntrusiveList for keeping track of InodeWatchers
This commit is contained in:
parent
cdc1315dc8
commit
43d6a7e74e
3 changed files with 19 additions and 14 deletions
|
@ -80,6 +80,11 @@ private:
|
|||
// watch description, so they will overlap.
|
||||
HashMap<int, NonnullOwnPtr<WatchDescription>> m_wd_to_watches;
|
||||
HashMap<InodeIdentifier, WatchDescription*> m_inode_to_watches;
|
||||
|
||||
IntrusiveListNode<InodeWatcher> m_list_node;
|
||||
|
||||
public:
|
||||
using List = IntrusiveList<InodeWatcher, RawPtr<InodeWatcher>, &InodeWatcher::m_list_node>;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue