summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-09-30 17:28:42 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-09-30 17:29:10 +0200
commit8fcc74e2531f53b6e09584fb58022f852a32b26c (patch)
treed2575142d5d82a32f03d2ce9ad3f501e8bc8bb76 /include
parenta9039cf5d75f4da667d9279d61f7549c43f7ea51 (diff)
downloadqtlocation-mapboxgl-8fcc74e2531f53b6e09584fb58022f852a32b26c.tar.gz
fix headless tests
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/map/tile_data.hpp2
-rw-r--r--include/mbgl/util/uv-worker.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/mbgl/map/tile_data.hpp b/include/mbgl/map/tile_data.hpp
index 07cf19c5c8..823523679a 100644
--- a/include/mbgl/map/tile_data.hpp
+++ b/include/mbgl/map/tile_data.hpp
@@ -41,7 +41,7 @@ public:
public:
TileData(Tile::ID id, Map &map, const util::ptr<SourceInfo> &source);
- ~TileData();
+ virtual ~TileData();
void request();
void cancel();
diff --git a/include/mbgl/util/uv-worker.h b/include/mbgl/util/uv-worker.h
index a9c9aff500..eff1169a2b 100644
--- a/include/mbgl/util/uv-worker.h
+++ b/include/mbgl/util/uv-worker.h
@@ -21,11 +21,13 @@ struct uv_worker_s {
#ifndef NDEBUG
unsigned long thread_id;
#endif
+ uv_loop_t *loop;
uv_messenger_t *msgr;
uv_chan_t chan;
const char *name;
int count;
uv_worker_close_cb close_cb;
+ int active;
};
int uv_worker_init(uv_worker_t *worker, uv_loop_t *loop, int count, const char *name);