Changeset 19 for trunk/src/helpers/timer.c
- Timestamp:
- Jan 3, 2001, 10:05:57 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/timer.c
r17 r19 36 36 * 37 37 * -- When a window is deleted, its timers are not 38 * automatically cleaned up. To be on the safe 39 * side, always call tmrStopAllTimers when 40 * WM_DESTROY comes into a window which has used 41 * timers. 38 * automatically cleaned up. The timer thread does 39 * detect invalid windows and removes them from the 40 * timers list before posting, but to be on the safe 41 * side, always call tmrStopAllTimers when WM_DESTROY 42 * comes into a window which has used timers. 42 43 * 43 44 * Function prefixes: … … 204 205 while (!ptiMyself->fExit) 205 206 { 206 ULONG ulNesting = 0;207 // ULONG ulNesting = 0; 207 208 208 209 ULONG ulTimeNow; … … 216 217 ulInterval = 100; 217 218 218 DosEnterMustComplete(&ulNesting);219 // DosEnterMustComplete(&ulNesting); 219 220 220 221 TRY_LOUD(excpt1) … … 240 241 &ulTimeNow, sizeof(ulTimeNow)); 241 242 242 while ( pTimerNode)243 while ((pTimerNode) && (!ptiMyself->fExit)) 243 244 { 244 245 PXTIMER pTimer = (PXTIMER)pTimerNode->pItemData; … … 279 280 280 281 // destroy invalid timers, if any 281 if ( fFoundInvalid)282 if ((fFoundInvalid) && (!ptiMyself->fExit)) 282 283 { 283 284 PLISTNODE pNodeNode = lstQueryFirstNode(&llInvalidTimers); … … 302 303 } 303 304 304 DosExitMustComplete(&ulNesting);305 // DosExitMustComplete(&ulNesting); 305 306 306 307 } // end while (!ptiMyself->fExit)
Note:
See TracChangeset
for help on using the changeset viewer.