VirtualBox

Changeset 7630 in vbox


Ignore:
Timestamp:
Mar 28, 2008 4:32:37 PM (17 years ago)
Author:
vboxsync
Message:

Keep hitting the assertion in the wait code. Attempt to improve this by avoiding calling RTTimeMilliTS twice (RT_MAX() promise double eval of the winner) and force signed math.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r7575 r7630  
    52785278            /* Wait for at most 5 seconds, and if that is elapsed for 100msec
    52795279             * per remaining thread. Just to be on the safe side. */
     5280            int64_t cMsElapsed = RTTimeMilliTS() - u64Start;
    52805281            rc = RTThreadWait(pData->aCts[i].AsyncIOThread,
    5281                               RT_MAX(RTTimeMilliTS() - u64Start + 5000, 100),
     5282                              RT_MAX(cMsElapsed + 5000, 100),
    52825283                              NULL);
    52835284            if (VBOX_FAILURE(rc) && rc != VERR_INVALID_HANDLE)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette