summaryrefslogtreecommitdiff
path: root/platform/android/src/run_loop_impl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/src/run_loop_impl.hpp')
-rw-r--r--platform/android/src/run_loop_impl.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/android/src/run_loop_impl.hpp b/platform/android/src/run_loop_impl.hpp
index c6a1b23a7b..8f0a07f8ba 100644
--- a/platform/android/src/run_loop_impl.hpp
+++ b/platform/android/src/run_loop_impl.hpp
@@ -9,12 +9,15 @@
#include <list>
#include <memory>
#include <mutex>
+#include <unordered_map>
struct ALooper;
namespace mbgl {
namespace util {
+using WatchCallback = std::function<void(int, RunLoop::Event)>;
+
template <typename T> class Thread;
class Alarm;
@@ -43,6 +46,8 @@ public:
std::atomic<bool> running;
std::atomic_flag coalesce = ATOMIC_FLAG_INIT;
+ std::unordered_map<int, WatchCallback> readPoll;
+
private:
friend RunLoop;