diff options
Diffstat (limited to 'src/mbgl/util/uv-channel.h')
-rw-r--r-- | src/mbgl/util/uv-channel.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/mbgl/util/uv-channel.h b/src/mbgl/util/uv-channel.h deleted file mode 100644 index 0a0d706477..0000000000 --- a/src/mbgl/util/uv-channel.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef MBGL_UTIL_UV_CHANNEL -#define MBGL_UTIL_UV_CHANNEL - -#include <uv.h> - -#ifdef __cplusplus -extern "C" { -#endif - -// Taken from http://navaneeth.github.io/blog/2013/08/02/channels-in-libuv/ - -typedef struct uv_chan_s uv_chan_t; - -struct uv_chan_s { - uv_mutex_t mutex; - uv_cond_t cond; - void *q[2]; -}; - -int uv_chan_init(uv_chan_t *chan); -void uv_chan_send(uv_chan_t *chan, void *data); -void *uv_chan_receive(uv_chan_t *chan); -void uv_chan_destroy(uv_chan_t *chan); - -#ifdef __cplusplus -} -#endif - -#endif |