VirtualBox

Changeset 25650 in vbox


Ignore:
Timestamp:
Jan 5, 2010 2:43:53 PM (15 years ago)
Author:
vboxsync
Message:

semevent-linux.cpp: Fixed bug in rtSemEventWait when calculating u64End for timeouts larger than 4294 ms, the effective timeout was truncated <= 4294 ms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/linux/semevent-linux.cpp

    r25639 r25650  
    3030
    3131#include <features.h>
    32 #if __GLIBC_PREREQ(2,6) && !defined(IPRT_WITH_FUTEX_BASED_SEMS)
     32#if __GLIBC_PREREQ(2,6) && !defined(IPRT_WITH_FUTEX_BASED_SEMS) && !defined(DEBUG_bird)
    3333
    3434/*
     
    238238            return VERR_TIMEOUT;
    239239        ts.tv_sec  = cMillies / 1000;
    240         ts.tv_nsec = (cMillies % 1000) * 1000000;
    241         u64End = RTTimeSystemNanoTS() + cMillies * 1000000;
     240        ts.tv_nsec = (cMillies % 1000) * UINT32_C(1000000);
     241        u64End = RTTimeSystemNanoTS() + cMillies * UINT64_C(1000000);
    242242        pTimeout = &ts;
    243243    }
     
    309309                break;
    310310            }
    311             ts.tv_sec  = i64Diff / 1000000000;
    312             ts.tv_nsec = i64Diff % 1000000000;
     311            ts.tv_sec  = (uint64_t)i64Diff / UINT32_C(1000000000);
     312            ts.tv_nsec = (uint64_t)i64Diff % UINT32_C(1000000000);
    313313        }
    314314    }
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