Changeset 54194 in vbox for trunk/src/VBox/Runtime/r0drv/solaris/timer-r0drv-solaris.c
- Timestamp:
- Feb 13, 2015 11:04:10 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 98254
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/timer-r0drv-solaris.c
r54193 r54194 160 160 * Destroys the timer when the reference counter has reached zero. 161 161 * 162 * @returns 0 (new references counter value). 162 163 * @param pTimer The timer. 163 164 */ 164 static voidrtTimeSolReleaseCleanup(PRTTIMER pTimer)165 static uint32_t rtTimeSolReleaseCleanup(PRTTIMER pTimer) 165 166 { 166 167 Assert(pTimer->hCyclicId == CYCLIC_NONE); 167 168 ASMAtomicWriteU32(&pTimer->u32Magic, ~RTTIMER_MAGIC); 168 169 RTMemFree(pTimer); 170 return 0; 169 171 } 170 172 … … 180 182 uint32_t cRefs = ASMAtomicDecU32(&pTimer->cRefs); 181 183 if (!cRefs) 182 r tTimeSolReleaseCleanup(pTimer);184 return rtTimeSolReleaseCleanup(pTimer); 183 185 return cRefs; 184 186 } … … 268 270 return; 269 271 } 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 } 275 277 if (RT_LIKELY(pTimer->hCyclicId != CYCLIC_NONE)) 276 278 cyclic_reprogram(pTimer->hCyclicId, CY_INFINITY); … … 316 318 /* 317 319 * The interval was changed, we need to set the expiration time 318 * our 320 * ourselves before returning. This comes at a slight cost, 319 321 * which is why we don't do it all the time. 320 322 *
Note:
See TracChangeset
for help on using the changeset viewer.