diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-12-15 23:32:08 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-12-15 23:32:08 +0000 |
commit | 5a54d899674878e6a8eae7e87163ffc4ddeed5db (patch) | |
tree | 017c49d84ab72918c79681324819ec5427bb1ecb /lib | |
parent | 6c164aed556c99e51f7d3df91a195b2a4f2f1130 (diff) |
Add a note about units of arguments to PollTimeout function().
Because they're not obvious and I wasted time trying to figure them out.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/server/SocketStream.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/server/SocketStream.h b/lib/server/SocketStream.h index 8b5e322d..66308c0d 100644 --- a/lib/server/SocketStream.h +++ b/lib/server/SocketStream.h @@ -63,6 +63,8 @@ protected: void MarkAsWriteClosed() {mWriteClosed = true;} void CheckForMissingTimeout(int Timeout); + // Converts a timeout in box_time_t (microseconds) to a value used + // by the poll() syscall (milliseconds). int PollTimeout(int timeout, box_time_t start_time) { if (timeout == IOStream::TimeOutInfinite) |