xgboost
|
helper data structure to perform poll More...
#include <poll_utils.h>
Public Member Functions | |
void | WatchRead (SOCKET fd) |
add file descriptor to watch for read More... | |
void | WatchRead (xgboost::collective::TCPSocket const &socket) |
void | WatchWrite (SOCKET fd) |
add file descriptor to watch for write More... | |
void | WatchWrite (xgboost::collective::TCPSocket const &socket) |
void | WatchException (SOCKET fd) |
add file descriptor to watch for exception More... | |
void | WatchException (xgboost::collective::TCPSocket const &socket) |
bool | CheckRead (SOCKET fd) const |
Check if the descriptor is ready for read. More... | |
bool | CheckRead (xgboost::collective::TCPSocket const &socket) const |
bool | CheckWrite (SOCKET fd) const |
Check if the descriptor is ready for write. More... | |
bool | CheckWrite (xgboost::collective::TCPSocket const &socket) const |
xgboost::collective::Result | Poll (std::chrono::seconds timeout, bool check_error=true) |
perform poll on the set defined, read, write, exception More... | |
Public Attributes | |
std::unordered_map< SOCKET, pollfd > | fds |
helper data structure to perform poll
|
inline |
Check if the descriptor is ready for read.
fd | file descriptor to check status |
|
inline |
|
inline |
Check if the descriptor is ready for write.
fd | file descriptor to check status |
|
inline |
|
inline |
perform poll on the set defined, read, write, exception
timeout | specify timeout in seconds. Block if negative. |
|
inline |
add file descriptor to watch for exception
fd | file descriptor to be watched |
|
inline |
|
inline |
add file descriptor to watch for read
fd | file descriptor to be watched |
|
inline |
|
inline |
add file descriptor to watch for write
fd | file descriptor to be watched |
|
inline |
std::unordered_map<SOCKET, pollfd> rabit::utils::PollHelper::fds |