VirtualBox

Ignore:
Timestamp:
Feb 13, 2015 11:04:10 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98254
Message:

undid some incorrect fixes.

File:
1 edited

Legend:

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

    r54193 r54194  
    160160 * Destroys the timer when the reference counter has reached zero.
    161161 *
     162 * @returns 0 (new references counter value).
    162163 * @param   pTimer              The timer.
    163164 */
    164 static void rtTimeSolReleaseCleanup(PRTTIMER pTimer)
     165static uint32_t rtTimeSolReleaseCleanup(PRTTIMER pTimer)
    165166{
    166167    Assert(pTimer->hCyclicId == CYCLIC_NONE);
    167168    ASMAtomicWriteU32(&pTimer->u32Magic, ~RTTIMER_MAGIC);
    168169    RTMemFree(pTimer);
     170    return 0;
    169171}
    170172
     
    180182    uint32_t cRefs = ASMAtomicDecU32(&pTimer->cRefs);
    181183    if (!cRefs)
    182         rtTimeSolReleaseCleanup(pTimer);
     184        return rtTimeSolReleaseCleanup(pTimer);
    183185    return cRefs;
    184186}
     
    268270            return;
    269271        }
    270     }
    271 
    272     /*
    273      * The timer has been suspended, set expiration time to infinitiy.
    274      */
     272
     273        /*
     274         * The timer has been suspended, set expiration time to infinitiy.
     275         */
     276    }
    275277    if (RT_LIKELY(pTimer->hCyclicId != CYCLIC_NONE))
    276278        cyclic_reprogram(pTimer->hCyclicId, CY_INFINITY);
     
    316318            /*
    317319             * The interval was changed, we need to set the expiration time
    318              * our selves before returning.  This comes at a slight cost,
     320             * ourselves before returning.  This comes at a slight cost,
    319321             * which is why we don't do it all the time.
    320322             *
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