Changeset 17 for trunk/src/helpers/timer.c
- Timestamp:
- Dec 16, 2000, 10:09:53 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/timer.c
r15 r17 73 73 #define INCL_DOSMISC 74 74 #define INCL_DOSERRORS 75 76 #define INCL_WINMESSAGEMGR 75 77 #include <os2.h> 76 78 … … 151 153 } 152 154 else 153 brc = ( DosRequestMutexSem(G_hmtxTimers, SEM_INDEFINITE_WAIT)155 brc = (WinRequestMutexSem(G_hmtxTimers, SEM_INDEFINITE_WAIT) 154 156 == NO_ERROR); 155 157 return (brc); … … 164 166 { 165 167 DosReleaseMutexSem(G_hmtxTimers); 166 }167 168 /*169 *@@ tmrOnKill:170 * on-kill proc for exception handlers.171 *172 *@@added V0.9.7 (2000-12-09) [umoeller]173 */174 175 VOID APIENTRY tmrOnKill(PEXCEPTIONREGISTRATIONRECORD2 pRegRec2)176 {177 DosBeep(500, 500);178 UnlockTimers();179 168 } 180 169 … … 217 206 ULONG ulNesting = 0; 218 207 208 ULONG ulTimeNow; 209 219 210 DosSleep(ulInterval); 220 211 … … 225 216 ulInterval = 100; 226 217 218 DosEnterMustComplete(&ulNesting); 219 227 220 TRY_LOUD(excpt1) 228 221 { 229 DosEnterMustComplete(&ulNesting);230 231 222 fLocked = LockTimers(); 232 223 if (fLocked) … … 244 235 // we have timers: 245 236 BOOL fFoundInvalid = FALSE; 237 238 // get current time 239 DosQuerySysInfo(QSV_MS_COUNT, QSV_MS_COUNT, 240 &ulTimeNow, sizeof(ulTimeNow)); 241 246 242 while (pTimerNode) 247 243 { 248 244 PXTIMER pTimer = (PXTIMER)pTimerNode->pItemData; 249 ULONG ulTimeNow;250 DosQuerySysInfo(QSV_MS_COUNT, QSV_MS_COUNT,251 &ulTimeNow, sizeof(ulTimeNow));252 245 253 246 if (pTimer->ulNextFire < ulTimeNow)
Note:
See TracChangeset
for help on using the changeset viewer.