Add simple static method to retrieve the current loop

In the lines of how we do for getting information of the
current thread.
This commit is contained in:
Thiago Marcos P. Santos
2015-06-30 16:13:40 +03:00
parent 106312c0b8
commit f6b8dd4be9
7 changed files with 13 additions and 9 deletions

View File

@@ -42,7 +42,7 @@ void VectorTileData::request(float pixelRatio, const std::function<void()>& call
state = State::loading;
FileSource* fs = util::ThreadContext::getFileSource();
req = fs->request({ Resource::Kind::Tile, url }, util::RunLoop::current.get()->get(), [url, callback, this](const Response &res) {
req = fs->request({ Resource::Kind::Tile, url }, util::RunLoop::getLoop(), [url, callback, this](const Response &res) {
req = nullptr;
if (res.status != Response::Successful) {