VirtualBox

Changeset 54193 in vbox for trunk/src/VBox/Runtime/r0drv


Ignore:
Timestamp:
Feb 13, 2015 10:38:51 AM (10 years ago)
Author:
vboxsync
Message:

Runtime/r0drv/timer-r0drv-solaris: nit.

File:
1 edited

Legend:

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

    r54190 r54193  
    160160 * Destroys the timer when the reference counter has reached zero.
    161161 *
    162  * @returns 0 (new references counter value).
    163162 * @param   pTimer              The timer.
    164163 */
    165 static uint32_t rtTimeSolReleaseCleanup(PRTTIMER pTimer)
     164static void rtTimeSolReleaseCleanup(PRTTIMER pTimer)
    166165{
    167166    Assert(pTimer->hCyclicId == CYCLIC_NONE);
     
    181180    uint32_t cRefs = ASMAtomicDecU32(&pTimer->cRefs);
    182181    if (!cRefs)
    183         return rtTimeSolReleaseCleanup(pTimer);
     182        rtTimeSolReleaseCleanup(pTimer);
    184183    return cRefs;
    185184}
     
    259258            /*
    260259             * The interval was changed, we need to set the expiration time
    261              * our selves before returning.  This comes at a slight cost,
     260             * ourselves before returning.  This comes at a slight cost,
    262261             * which is why we don't do it all the time.
    263262             */
     
    269268            return;
    270269        }
    271 
    272         /*
    273          * The timer has been suspended, set expiration time to infinitiy.
    274          */
    275     }
     270    }
     271
     272    /*
     273     * The timer has been suspended, set expiration time to infinitiy.
     274     */
    276275    if (RT_LIKELY(pTimer->hCyclicId != CYCLIC_NONE))
    277276        cyclic_reprogram(pTimer->hCyclicId, CY_INFINITY);
     
    560559        pTimer->u.Single.FireTime.cyt_interval = pTimer->cNsInterval != 0
    561560                                               ? pTimer->cNsInterval
    562                                                : CY_INFINITY /* Special value, see cyclic_fire. */;
     561                                               : CY_INFINITY /* Special value, see cyclic_fire(). */;
    563562        pTimer->u.Single.u64Tick = 0;
    564563        pTimer->u.Single.nsNextTick = 0;
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