mirror of https://github.com/kiwix/libkiwix.git
When ConcurrentCache store a shared_ptr we may have shared_ptr in used while the ConcurrentCache has drop it. When we "recreate" a value to put in the cache, we don't want to recreate it, but copying the shared_ptr in use. To do so we use a (unlimited) store of weak_ptr (aka `WeakStore`) Every created shared_ptr added to the cache has a weak_ptr ref also stored in the WeakStore, and we check the WeakStore before creating the value. |
||
---|---|---|
.. | ||
archiveTools.cpp | ||
archiveTools.h | ||
base64.cpp | ||
base64.h | ||
concurrent_cache.h | ||
lrucache.h | ||
networkTools.cpp | ||
networkTools.h | ||
otherTools.cpp | ||
otherTools.h | ||
pathTools.cpp | ||
pathTools.h | ||
regexTools.cpp | ||
regexTools.h | ||
stringTools.cpp | ||
stringTools.h |