43 std::lock_guard<std::mutex> lock(
lock_);
55 std::lock_guard<std::mutex> lock(
lock_);
69 std::lock_guard<std::mutex> lock(
lock_);
80 return select(maxfd + 1, &iop, NULL, NULL, &t) > 0;
IOWatch()
Creates a new instance.
void remIO(const int fd)
Removes a file descriptor from the set of descriptors.
void addIO(const int fd)
Adds a file descriptor to the set of descriptors.
bool watch(const long secs, const long usecs)
Performs a select() call.
~IOWatch()
Destroys an instance.