17 #ifndef CYBER_IO_POLL_HANDLER_H_ 18 #define CYBER_IO_POLL_HANDLER_H_ 35 bool Block(
int timeout_ms,
bool is_read);
38 int fd()
const {
return fd_; }
42 bool Check(
int timeout_ms);
43 void Fill(
int timeout_ms,
bool is_read);
49 std::atomic<bool> is_read_;
50 std::atomic<bool> is_blocking_;
58 #endif // CYBER_IO_POLL_HANDLER_H_
Definition: croutine.h:40
Definition: poll_handler.h:30
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
bool Block(int timeout_ms, bool is_read)
Definition: poll_data.h:35
void set_fd(int fd)
Definition: poll_handler.h:39
virtual ~PollHandler()=default
int fd() const
Definition: poll_handler.h:38
Definition: poll_data.h:29