diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-01-08 23:17:43 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-01-09 01:26:29 +0200 |
commit | d7fdcc73bfcab39f63e547ce2af8435a9859cb08 (patch) | |
tree | 223b8f6bb663fff22ea5f65e487c40d280630cb2 /platform/default/async_task.cpp | |
parent | e7b0b31d58997ce0c849129d07a97cb0740beb7e (diff) | |
download | qtlocation-mapboxgl-d7fdcc73bfcab39f63e547ce2af8435a9859cb08.tar.gz |
[core] Get rid of ::unref() for Timer and AsyncTask
Not need, legacy from libuv. The RunLoop keep the main
loop running until is explicitly no longer needed.
Diffstat (limited to 'platform/default/async_task.cpp')
-rw-r--r-- | platform/default/async_task.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/platform/default/async_task.cpp b/platform/default/async_task.cpp index c8fb4dcd13..05cf759863 100644 --- a/platform/default/async_task.cpp +++ b/platform/default/async_task.cpp @@ -28,6 +28,7 @@ public: } handle()->data = this; + uv_unref(handle()); } ~Impl() { @@ -43,10 +44,6 @@ public: } } - void unref() { - uv_unref(handle()); - } - private: static void asyncCallback(UV_ASYNC_PARAMS(handle)) { reinterpret_cast<Impl*>(handle->data)->task(); @@ -71,9 +68,5 @@ void AsyncTask::send() { impl->maySend(); } -void AsyncTask::unref() { - impl->unref(); -} - } // namespace util } // namespace mbgl |