[Box Backup-commit] COMMIT r3463 - box/trunk/lib/server
subversion at boxbackup.org
subversion at boxbackup.org
Mon Dec 15 23:32:08 GMT 2014
Author: chris
Date: 2014-12-15 23:32:08 +0000 (Mon, 15 Dec 2014)
New Revision: 3463
Modified:
box/trunk/lib/server/SocketStream.h
Log:
Add a note about units of arguments to PollTimeout function().
Because they're not obvious and I wasted time trying to figure them out.
Modified: box/trunk/lib/server/SocketStream.h
===================================================================
--- box/trunk/lib/server/SocketStream.h 2014-12-15 23:31:29 UTC (rev 3462)
+++ box/trunk/lib/server/SocketStream.h 2014-12-15 23:32:08 UTC (rev 3463)
@@ -63,6 +63,8 @@
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)
More information about the Boxbackup-commit
mailing list