summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-08-11 07:41:52 -0700
committerKonstantin Käfer <mail@kkaefer.com>2014-08-11 07:41:52 -0700
commit225b5e01cbadc46727f77ccf185c711b5f6956a7 (patch)
tree8dcb04f9b2268d3d63378bae6220fea1256f9d06 /include
parenteef51a867974df6279ab0c2003d9660a61ac6c5d (diff)
downloadqtlocation-mapboxgl-225b5e01cbadc46727f77ccf185c711b5f6956a7.tar.gz
don't automatically move back to main thread
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/util/filesource.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/mbgl/util/filesource.hpp b/include/mbgl/util/filesource.hpp
index 83e2a635e5..0d339cbac7 100644
--- a/include/mbgl/util/filesource.hpp
+++ b/include/mbgl/util/filesource.hpp
@@ -25,16 +25,14 @@ enum class ResourceType : uint8_t {
class FileSource {
public:
- FileSource(const std::shared_ptr<uv::loop> &loop);
+ FileSource();
void setBase(const std::string &value);
const std::string &getBase() const;
- void load(ResourceType type, const std::string &url, std::function<void(platform::Response *)> callback);
+ void load(ResourceType type, const std::string &url, std::function<void(platform::Response *)> callback, const std::shared_ptr<uv::loop> loop = nullptr);
private:
- std::shared_ptr<uv::loop> loop;
-
// Stores a URL that is used as a base for loading resources with relative path.
std::string base;