MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / queueBack

Method queueBack

Libraries/FileSystemWatcher/FileSystemWatcher.cpp:93–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void SC::FileSystemWatcher::WatcherLinkedList::queueBack(FolderWatcher& item)
94{
95 SC_FILE_SYSTEM_WATCHER_ASSERT_DEBUG(item.next == nullptr and item.prev == nullptr);
96 if (back)
97 {
98 back->next = &item;
99 item.prev = back;
100 }
101 else
102 {
103 SC_FILE_SYSTEM_WATCHER_ASSERT_DEBUG(front == nullptr);
104 front = &item;
105 }
106 back = &item;
107 SC_FILE_SYSTEM_WATCHER_ASSERT_DEBUG(back->next == nullptr);
108 SC_FILE_SYSTEM_WATCHER_ASSERT_DEBUG(front->prev == nullptr);
109}
110
111void SC::FileSystemWatcher::WatcherLinkedList::remove(FolderWatcher& item)
112{

Callers 1

watchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected