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

@@ -148,7 +148,7 @@ void Source::load() {
}
FileSource* fs = util::ThreadContext::getFileSource();
req = fs->request({ Resource::Kind::Source, info.url }, util::RunLoop::current.get()->get(), [this](const Response &res) {
req = fs->request({ Resource::Kind::Source, info.url }, util::RunLoop::getLoop(), [this](const Response &res) {
req = nullptr;
if (res.status != Response::Successful) {