summaryrefslogtreecommitdiff
path: root/include/mbgl/util/uv.hpp
blob: 3c533cfbf8c131e3d81dcba7207a92507aef7417 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef MBGL_UTIL_UV
#define MBGL_UTIL_UV

#include <string>

typedef struct uv_async_s uv_async_t;
typedef struct uv_timer_s uv_timer_t;
typedef struct uv_handle_s uv_handle_t;
typedef struct uv_loop_s uv_loop_t;

namespace uv {

std::string cwd();

struct deleter {
    void operator()(uv_async_t *async);
    void operator()(uv_timer_t *timer);
};

class thread;
class rwlock;
class loop;
class worker;

}

#endif