@@ -16,6 +16,8 @@ struct ALooper;
|
||||
namespace mbgl {
|
||||
namespace util {
|
||||
|
||||
using WatchCallback = std::function<void(int, RunLoop::Event)>;
|
||||
|
||||
template <typename T>
|
||||
class Thread;
|
||||
class Alarm;
|
||||
@@ -47,7 +49,7 @@ public:
|
||||
std::atomic<bool> running;
|
||||
std::atomic_flag coalesce = ATOMIC_FLAG_INIT;
|
||||
|
||||
std::unordered_map<int, std23::move_only_function<void(int, RunLoop::Event)>> readPoll;
|
||||
std::unordered_map<int, WatchCallback> readPoll;
|
||||
|
||||
private:
|
||||
friend RunLoop;
|
||||
|
||||
Reference in New Issue
Block a user