X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fresourcemanager.h;h=afa2c2d073e45b32b25332a91a3be9c7c8568461;hp=5cc427f729cabaa4ec15eec927283d38297f4a68;hb=cfd4d36c2b6b6095ada3aef8082e5d409a233a21;hpb=5f84c8caeb789571503b5491f941c8ec31b700fe diff --git a/source/resourcemanager.h b/source/resourcemanager.h index 5cc427f7..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