#pragma once #include #include #include #include #include #include #include namespace mbgl { namespace util { using WatchCallback = std::function; using WatchPair = std::pair, WatchCallback>; class RunLoop::Impl : public QObject { Q_OBJECT public: Impl() = default; RunLoop::Type type; std::unique_ptr loop; std::unique_ptr async; std::unordered_map readPoll; std::unordered_map writePoll; public slots: void onReadEvent(int fd); void onWriteEvent(int fd); }; } // namespace util } // namespace mbgl