diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-04-22 16:54:55 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-04-22 16:54:55 +0200 |
commit | 1ecff578295a44cd33e476acf9960d989e65b99b (patch) | |
tree | 820b2769560b0460d188482dbd660639cacefd2f /common/curl_request.cpp | |
parent | 9ff9d0edb55bcf15eb030b96f57cc6d5c63b8c5c (diff) | |
download | qtlocation-mapboxgl-1ecff578295a44cd33e476acf9960d989e65b99b.tar.gz |
use libuv event loop in the glfw view
Integrates libuv's default loop with GLFW's glfwWaitEvents() call. See https://github.com/joyent/libuv/issues/1246 for more details on integrating event loops.
fixes #149
Diffstat (limited to 'common/curl_request.cpp')
-rw-r--r-- | common/curl_request.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/curl_request.cpp b/common/curl_request.cpp index dc9db0269c..7cfe8fcabd 100644 --- a/common/curl_request.cpp +++ b/common/curl_request.cpp @@ -341,6 +341,8 @@ void async_cancel_cb(uv_async_t * /*async*/) { } void thread_init_cb() { + curl_global_init(CURL_GLOBAL_ALL); + loop = uv_loop_new(); uv_async_init(loop, &async_add, async_add_cb); uv_async_init(loop, &async_cancel, async_cancel_cb); |