make sure all of our async handles are stopped before stopping the map thread

This commit is contained in:
Konstantin Käfer
2014-09-16 14:48:46 +02:00
parent d9fc7708a2
commit 6c526e5637
10 changed files with 92 additions and 56 deletions

View File

@@ -5,6 +5,8 @@
#include <cassert>
#include <unistd.h>
namespace mbgl {
struct FileRequestBaton {
@@ -161,7 +163,7 @@ void FileRequestBaton::cleanup(uv_fs_t *req) {
}
FileRequest::FileRequest(const std::string &path_, uv_loop_t *loop)
: BaseRequest(), path(path_), thread_id(uv_thread_self()), ptr(new FileRequestBaton(this, path, loop)) {
: BaseRequest(path_), ptr(new FileRequestBaton(this, path, loop)) {
}
FileRequest::~FileRequest() {