17 #ifndef CYBER_IO_POLLER_H_ 18 #define CYBER_IO_POLLER_H_ 25 #include <unordered_map> 52 void Poll(
int timeout_ms);
60 std::atomic<bool> is_shutdown_ = {
true};
62 int pipe_fd_[2] = {-1, -1};
63 std::mutex pipe_mutex_;
69 const int kPollSize = 32;
70 const int kPollTimeoutMs = 100;
79 #endif // CYBER_IO_POLLER_H_
std::unordered_map< int, RequestPtr > RequestMap
Definition: poller.h:39
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: atomic_rw_lock.h:36
std::shared_ptr< PollRequest > RequestPtr
Definition: poller.h:38
Definition: poll_data.h:35
#define DECLARE_SINGLETON(classname)
Definition: macros.h:52
bool Register(const PollRequest &req)
bool Unregister(const PollRequest &req)
std::unordered_map< int, PollCtrlParam > CtrlParamMap
Definition: poller.h:40