VirtualBox

Changeset 25724 in vbox for trunk/src/VBox/Runtime/r0drv/os2


Ignore:
Timestamp:
Jan 11, 2010 2:45:34 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56467
Message:

iprt: Use RTMSINTERVAL for timeouts. Fixed missing timeout underflow checks in two RTFileAioCtxWait implementations.

Location:
trunk/src/VBox/Runtime/r0drv/os2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/os2/semevent-r0drv-os2.cpp

    r25717 r25724  
    154154
    155155
    156 static int rtSemEventWait(RTSEMEVENT hEventSem, unsigned cMillies, bool fInterruptible)
     156static int rtSemEventWait(RTSEMEVENT hEventSem, RTMSINTERVAL cMillies, bool fInterruptible)
    157157{
    158158    PRTSEMEVENTINTERNAL pThis = (PRTSEMEVENTINTERNAL)hEventSem;
     
    221221
    222222
    223 RTDECL(int)  RTSemEventWait(RTSEMEVENT hEventSem, unsigned cMillies)
     223RTDECL(int)  RTSemEventWait(RTSEMEVENT hEventSem, RTMSINTERVAL cMillies)
    224224{
    225225    return rtSemEventWait(hEventSem, cMillies, false /* not interruptible */);
     
    227227
    228228
    229 RTDECL(int)  RTSemEventWaitNoResume(RTSEMEVENT hEventSem, unsigned cMillies)
     229RTDECL(int)  RTSemEventWaitNoResume(RTSEMEVENT hEventSem, RTMSINTERVAL cMillies)
    230230{
    231231    return rtSemEventWait(hEventSem, cMillies, true /* interruptible */);
  • trunk/src/VBox/Runtime/r0drv/os2/semeventmulti-r0drv-os2.cpp

    r25720 r25724  
    164164
    165165
    166 static int rtSemEventMultiWait(RTSEMEVENTMULTI hEventMultiSem, unsigned cMillies, bool fInterruptible)
     166static int rtSemEventMultiWait(RTSEMEVENTMULTI hEventMultiSem, RTMSINTERVAL cMillies, bool fInterruptible)
    167167{
    168168    PRTSEMEVENTMULTIINTERNAL pThis = (PRTSEMEVENTMULTIINTERNAL)hEventMultiSem;
     
    230230
    231231
    232 RTDECL(int)  RTSemEventMultiWait(RTSEMEVENTMULTI hEventMultiSem, unsigned cMillies)
     232RTDECL(int)  RTSemEventMultiWait(RTSEMEVENTMULTI hEventMultiSem, RTMSINTERVAL cMillies)
    233233{
    234234    return rtSemEventMultiWait(hEventMultiSem, cMillies, false /* not interruptible */);
     
    236236
    237237
    238 RTDECL(int)  RTSemEventMultiWaitNoResume(RTSEMEVENTMULTI hEventMultiSem, unsigned cMillies)
     238RTDECL(int)  RTSemEventMultiWaitNoResume(RTSEMEVENTMULTI hEventMultiSem, RTMSINTERVAL cMillies)
    239239{
    240240    return rtSemEventMultiWait(hEventMultiSem, cMillies, true /* interruptible */);
  • trunk/src/VBox/Runtime/r0drv/os2/thread-r0drv-os2.cpp

    r24287 r25724  
    5959
    6060
    61 RTDECL(int) RTThreadSleep(unsigned cMillies)
     61RTDECL(int) RTThreadSleep(RTMSINTERVAL cMillies)
    6262{
    6363    int rc = KernBlock((ULONG)RTThreadSleep,
Note: See TracChangeset for help on using the changeset viewer.

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