Changeset 54193 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- Feb 13, 2015 10:38:51 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/timer-r0drv-solaris.c
r54190 r54193 160 160 * Destroys the timer when the reference counter has reached zero. 161 161 * 162 * @returns 0 (new references counter value).163 162 * @param pTimer The timer. 164 163 */ 165 static uint32_trtTimeSolReleaseCleanup(PRTTIMER pTimer)164 static void rtTimeSolReleaseCleanup(PRTTIMER pTimer) 166 165 { 167 166 Assert(pTimer->hCyclicId == CYCLIC_NONE); … … 181 180 uint32_t cRefs = ASMAtomicDecU32(&pTimer->cRefs); 182 181 if (!cRefs) 183 r eturn rtTimeSolReleaseCleanup(pTimer);182 rtTimeSolReleaseCleanup(pTimer); 184 183 return cRefs; 185 184 } … … 259 258 /* 260 259 * The interval was changed, we need to set the expiration time 261 * our 260 * ourselves before returning. This comes at a slight cost, 262 261 * which is why we don't do it all the time. 263 262 */ … … 269 268 return; 270 269 } 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 */ 276 275 if (RT_LIKELY(pTimer->hCyclicId != CYCLIC_NONE)) 277 276 cyclic_reprogram(pTimer->hCyclicId, CY_INFINITY); … … 560 559 pTimer->u.Single.FireTime.cyt_interval = pTimer->cNsInterval != 0 561 560 ? pTimer->cNsInterval 562 : CY_INFINITY /* Special value, see cyclic_fire . */;561 : CY_INFINITY /* Special value, see cyclic_fire(). */; 563 562 pTimer->u.Single.u64Tick = 0; 564 563 pTimer->u.Single.nsNextTick = 0;
Note:
See TracChangeset
for help on using the changeset viewer.