[core] Removed dependency on uv_loop from the file source
This commit is contained in:
@@ -4,22 +4,24 @@
|
||||
#include <mutex>
|
||||
#include <set>
|
||||
|
||||
typedef struct uv_async_s uv_async_t;
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
namespace util {
|
||||
class AsyncTask;
|
||||
}
|
||||
|
||||
class NetworkStatus {
|
||||
public:
|
||||
static void Reachable();
|
||||
|
||||
static void Subscribe(uv_async_t *async);
|
||||
static void Unsubscribe(uv_async_t *async);
|
||||
static void Subscribe(util::AsyncTask* async);
|
||||
static void Unsubscribe(util::AsyncTask* async);
|
||||
|
||||
private:
|
||||
static std::mutex mtx;
|
||||
static std::set<uv_async_t *> observers;
|
||||
static std::set<util::AsyncTask*> observers;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user