Changeset 58294 in vbox
- Timestamp:
- Oct 17, 2015 10:39:09 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/localipc-posix.cpp
r58293 r58294 42 42 #include <iprt/socket.h> 43 43 #include <iprt/string.h> 44 #include <iprt/time.h> 44 45 45 46 #include <sys/types.h> … … 835 836 { 836 837 pThis->hReadThread = RTThreadSelf(); 838 uint64_t const msStart = RTTimeMilliTS(); 839 RTMSINTERVAL const cMsOriginalTimeout = cMillies; 837 840 838 841 for (;;) … … 882 885 else if ( rc == VERR_INTERRUPTED 883 886 || rc == VERR_TRY_AGAIN) 887 { 888 /* Recalc cMillies. */ 889 if (cMsOriginalTimeout != RT_INDEFINITE_WAIT) 890 { 891 uint64_t cMsElapsed = RTTimeMilliTS() - msStart; 892 cMillies = cMsElapsed >= cMsOriginalTimeout ? 0 : cMsOriginalTimeout - (RTMSINTERVAL)cMsElapsed; 893 } 884 894 continue; 895 } 885 896 } 886 897 else
Note:
See TracChangeset
for help on using the changeset viewer.