VirtualBox

Changeset 25652 in vbox for trunk/src/VBox/Runtime/r3/linux


Ignore:
Timestamp:
Jan 5, 2010 2:49:29 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56367
Message:

semmutex-linux.cpp: Fixed bug in rtSemMutexRequest 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/semmutex-linux.cpp

    r25638 r25652  
    213213    {
    214214        ts.tv_sec  = cMillies / 1000;
    215         ts.tv_nsec = (cMillies % 1000) * 1000000;
    216         u64End = RTTimeSystemNanoTS() + cMillies * 1000000;
     215        ts.tv_nsec = (cMillies % 1000) * UINT32_C(1000000);
     216        u64End = RTTimeSystemNanoTS() + cMillies * UINT64_C(1000000);
    217217        pTimeout = &ts;
    218218    }
     
    288288                    break;
    289289                }
    290                 ts.tv_sec  = i64Diff / 1000000000;
    291                 ts.tv_nsec = i64Diff % 1000000000;
     290                ts.tv_sec  = (uint64_t)i64Diff / UINT32_C(1000000000);
     291                ts.tv_nsec = (uint64_t)i64Diff % UINT32_C(1000000000);
    292292            }
    293293        }
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