summaryrefslogtreecommitdiff
path: root/platform/default/async_task.cpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-02-18 01:09:48 +0200
committerThiago Marcos P. Santos <thiago@mapbox.com>2016-02-20 13:33:13 +0200
commit8a53c1a881c6a5272b647ca267d40fbc435d11d9 (patch)
treee3b850b2cba09234e893dbc6e8260550528dede1 /platform/default/async_task.cpp
parent1dbfbfe7e3dfa212fa8b63f1f31e2839341c745e (diff)
downloadqtlocation-mapboxgl-8a53c1a881c6a5272b647ca267d40fbc435d11d9.tar.gz
[core] libuv unref() not really needed
The run loop will be kept alive because it has an `AsyncTask`. We also can simple stop the loop with `uv_stop()`. The `RunLoop` is still gonna be the last object to be destroyed because it is the first object to be created in the thread, so by design it won't outlive `Timer`s and `AsyncTask`s. This patch won't change the current behavior, will just make the code simpler.
Diffstat (limited to 'platform/default/async_task.cpp')
-rw-r--r--platform/default/async_task.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/platform/default/async_task.cpp b/platform/default/async_task.cpp
index 05cf759863..00fe9ac5f0 100644
--- a/platform/default/async_task.cpp
+++ b/platform/default/async_task.cpp
@@ -28,7 +28,6 @@ public:
}
handle()->data = this;
- uv_unref(handle());
}
~Impl() {