summaryrefslogtreecommitdiff
path: root/src/mbgl/storage/request_holder.cpp
blob: 3a038623c47fca0f5e0925cd1297c422d0e47b75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <mbgl/storage/request_holder.hpp>
#include <mbgl/storage/file_source.hpp>
#include <mbgl/util/thread_context.hpp>

namespace mbgl {

void RequestHolder::Deleter::operator()(Request* req) const {
    // This function is called by the unique_ptr's Deleter.
    util::ThreadContext::getFileSource()->cancel(req);
}

}