libkiwix/src/tools
Matthieu Gautier e5ea210d2c Add a template specialization for ConcurrentCache storing shared_ptr
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.
2022-06-02 12:37:52 +02:00
..
archiveTools.cpp Correctly detect the number of article for zim version <= 6 2022-04-06 17:21:14 +02:00
archiveTools.h Correctly detect the number of article for zim version <= 6 2022-04-06 17:21:14 +02:00
base64.cpp Remove trailing spaces 2019-12-08 11:52:16 +01:00
base64.h Move all public *Tools.h in src. 2021-07-07 14:43:13 +02:00
concurrent_cache.h Add a template specialization for ConcurrentCache storing shared_ptr 2022-06-02 12:37:52 +02:00
lrucache.h Copy the lrucache test from libzim. 2022-06-02 12:37:52 +02:00
networkTools.cpp Fix win32 compilation. 2021-12-23 18:32:43 +01:00
networkTools.h Move all public *Tools.h in src. 2021-07-07 14:43:13 +02:00
otherTools.cpp kiwix::onlyAsNonEmptyMustacheValue() 2022-03-28 14:56:40 +02:00
otherTools.h Move `getCacheLength` to a generic helper function `getEnvVar` 2022-05-24 14:55:48 +02:00
pathTools.cpp Add tests for kiwix::fileExists and kiwix::fileReadable 2022-01-10 00:18:44 +05:30
pathTools.h exposed fileExist, getMimeTypeForFile and getFileCoontent functions 2021-10-12 19:44:38 +05:30
regexTools.cpp Use c++11 std::thread instead of pthread. 2021-01-26 17:53:25 +01:00
regexTools.h Move all public *Tools.h in src. 2021-07-07 14:43:13 +02:00
stringTools.cpp Better ExtractFromString 2022-05-23 10:56:39 +02:00
stringTools.h Better ExtractFromString 2022-05-23 10:56:39 +02:00