diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-02-18 01:09:48 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-02-20 13:33:13 +0200 |
commit | 8a53c1a881c6a5272b647ca267d40fbc435d11d9 (patch) | |
tree | e3b850b2cba09234e893dbc6e8260550528dede1 /platform/default/timer.cpp | |
parent | 1dbfbfe7e3dfa212fa8b63f1f31e2839341c745e (diff) | |
download | qtlocation-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/timer.cpp')
-rw-r--r-- | platform/default/timer.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/platform/default/timer.cpp b/platform/default/timer.cpp index 473f059133..5d7d0757e9 100644 --- a/platform/default/timer.cpp +++ b/platform/default/timer.cpp @@ -22,7 +22,6 @@ public: } handle()->data = this; - uv_unref(handle()); } ~Impl() { |