summaryrefslogtreecommitdiff
path: root/include/mbgl/util
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-04-09 11:51:57 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-04-09 15:30:58 -0700
commit0c087603e602bbb5ad25b4924f49169a316f695e (patch)
treec3faa2dabe9deb07a307532b04c5836a30c0600a /include/mbgl/util
parent0b779eaa8b96a65d5b97df7ad468e0380f50703f (diff)
downloadqtlocation-mapboxgl-0c087603e602bbb5ad25b4924f49169a316f695e.tar.gz
Replace uv_messenger with AsyncQueue; rewrite remaining uv_* in C++
Diffstat (limited to 'include/mbgl/util')
-rw-r--r--include/mbgl/util/uv-messenger.h33
-rw-r--r--include/mbgl/util/uv.hpp1
2 files changed, 0 insertions, 34 deletions
diff --git a/include/mbgl/util/uv-messenger.h b/include/mbgl/util/uv-messenger.h
deleted file mode 100644
index 35c5ce2188..0000000000
--- a/include/mbgl/util/uv-messenger.h
+++ /dev/null
@@ -1,33 +0,0 @@
-#ifndef MBGL_UTIL_UV_MESSENGER
-#define MBGL_UTIL_UV_MESSENGER
-
-#include <uv.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct uv_messenger_s uv_messenger_t;
-typedef void (*uv_messenger_cb)(void *arg);
-typedef void (*uv_messenger_stop_cb)(uv_messenger_t *msgr);
-
-struct uv_messenger_s {
- uv_mutex_t mutex;
- uv_async_t async;
- uv_messenger_cb callback;
- uv_messenger_stop_cb stop_callback;
- void *data;
- void *queue[2];
-};
-
-int uv_messenger_init(uv_loop_t *loop, uv_messenger_t *msgr, uv_messenger_cb callback);
-void uv_messenger_send(uv_messenger_t *msgr, void *arg);
-void uv_messenger_stop(uv_messenger_t *msgr, uv_messenger_stop_cb stop_callback);
-void uv_messenger_ref(uv_messenger_t *msgr);
-void uv_messenger_unref(uv_messenger_t *msgr);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/include/mbgl/util/uv.hpp b/include/mbgl/util/uv.hpp
index 6f0a916040..19c6c5b4df 100644
--- a/include/mbgl/util/uv.hpp
+++ b/include/mbgl/util/uv.hpp
@@ -17,7 +17,6 @@ std::string cwd();
class rwlock;
class loop;
class async;
-class worker;
class mutex;
class cond;