MCPcopy Create free account
hub / github.com/KDE/kdevelop / staticUnref

Method staticUnref

kdevplatform/language/util/setrepository.cpp:1166–1174  ·  view source on GitHub ↗

Decrease the static reference-count of this set by one. This set must have a reference-count > 1. If this set reaches the reference-count zero, it will be deleted, and all sub-nodes that also reach the reference-count zero will be deleted as well. @warning Either protect ALL your sets by using reference-counting, or don't use it at all.

Source from the content-addressed store, hash-verified

1164///If this set reaches the reference-count zero, it will be deleted, and all sub-nodes that also reach the reference-count zero
1165///will be deleted as well. @warning Either protect ALL your sets by using reference-counting, or don't use it at all.
1166void Set::staticUnref()
1167{
1168 if (!m_tree)
1169 return;
1170
1171 QMutexLocker lock(m_repository->m_mutex);
1172
1173 unrefNode(m_tree);
1174}
1175
1176StringSetRepository::StringSetRepository(const QString& name, QRecursiveMutex* mutex)
1177 : Utils::BasicSetRepository(name, mutex)

Callers 8

clearMethod · 0.80
~StorableSetMethod · 0.80
insertIndexMethod · 0.80
removeIndexMethod · 0.80
StorableSetClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected