VirtualBox

Changeset 48168 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 29, 2013 5:26:24 PM (11 years ago)
Author:
vboxsync
Message:

r0drv/solaris: Clarify why INT64_MAX.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/timer-r0drv-solaris.c

    r48167 r48168  
    360360        pSingleTimer->hFireTime.cyt_when = u64First + RTTimeNanoTS();
    361361        if (pTimer->interval == 0)
     362        {
     363            /* cylic_add() comment: "The caller is responsible for assuring that cyt_when + cyt_interval <= INT64_MAX" */
    362364            pSingleTimer->hFireTime.cyt_interval = INT64_MAX - pSingleTimer->hFireTime.cyt_when;
     365        }
    363366        else
    364367            pSingleTimer->hFireTime.cyt_interval = pTimer->interval;
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