diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/Cache.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/Cache.hpp b/include/Cache.hpp index 311658b..fc702a7 100644 --- a/include/Cache.hpp +++ b/include/Cache.hpp @@ -1,5 +1,6 @@ #pragma once +#include "types.hpp" #include <boost/filesystem/path.hpp> #include <SFML/Graphics/Texture.hpp> #include <string> @@ -7,6 +8,7 @@ #include <thread> #include <mutex> #include <vector> +#include <chrono> namespace TinyProcessLib { @@ -50,6 +52,7 @@ namespace dchat Type type; CachedType cachedType; + i64 lastAccessed; }; class Cache @@ -79,6 +82,7 @@ namespace dchat }; std::thread downloadWaitThread; + std::thread checkContentAccessTimeThread; std::vector<ImageDownloadInfo> imageDownloadProcesses; std::vector<ImageDownloadInfo> imageDownloadProcessesQueue; std::mutex imageDownloadMutex; |