X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fresourcemanager.h;h=afa2c2d073e45b32b25332a91a3be9c7c8568461;hp=f554b3484c7e006006d9b292bc803aea136f9e50;hb=cfd4d36c2b6b6095ada3aef8082e5d409a233a21;hpb=0071618b8eb3553948a2601b6f9e28bd7d2cd817 diff --git a/source/resourcemanager.h b/source/resourcemanager.h index f554b348..afa2c2d0 100644 --- a/source/resourcemanager.h +++ b/source/resourcemanager.h @@ -16,6 +16,7 @@ class ResourceWatcher; class resource_load_error: public std::runtime_error { public: + resource_load_error(const std::string &, const std::string &); resource_load_error(const std::string &, const std::exception &); virtual ~resource_load_error() throw() { } }; @@ -55,6 +56,7 @@ private: Resource *resource; ResourceLocation location; + bool load_priority; IO::Seekable *io; Resource::AsyncLoader *loader; State state; @@ -86,6 +88,8 @@ private: unsigned capacity; unsigned size; std::list error_queue; + Mutex data_size_mutex; + UInt64 loaded_data_size; volatile bool done; public: @@ -104,6 +108,7 @@ private: public: bool sync(); bool needs_work() const { return size