Add better error messaging when RegisterFd/UnregisterFd fail

This commit is contained in:
Tim Wojtulewicz 2020-01-30 13:34:10 -07:00
parent 0cfb115c1b
commit fea0339aca
6 changed files with 39 additions and 19 deletions

View file

@ -113,12 +113,12 @@ public:
* checked for readiness.
* @param src The IOSource that owns the file descriptor.
*/
void RegisterFd(int fd, IOSource* src);
bool RegisterFd(int fd, IOSource* src);
/**
* Unregisters a file descriptor from the FindReadySources checks.
*/
void UnregisterFd(int fd);
bool UnregisterFd(int fd, IOSource* src);
/**
* Forces the poll in FindReadySources to wake up immediately. This method