Changeset 10102 for trunk/src/user32/timer.cpp
- Timestamp:
- May 16, 2003, 11:21:00 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/timer.cpp
r6269 r10102 1 /* $Id: timer.cpp,v 1.1 4 2001-07-09 18:09:13sandervl Exp $ */1 /* $Id: timer.cpp,v 1.15 2003-05-16 09:21:00 sandervl Exp $ */ 2 2 3 3 /* … … 23 23 #include "oslibutil.h" 24 24 #include "timer.h" 25 #include <odincrt.h> 25 26 26 27 #define DBG_LOCALLOG DBG_timer … … 52 53 static TIMER TimersArray[NB_TIMERS]; 53 54 54 HMTX hSemTimer;55 static CRITICAL_SECTION_OS2 timercritsect = {0}; 55 56 56 57 inline void EnterCriticalSection (void) 57 58 { 58 if ( hSemTimer == NULLHANDLE)59 Dos CreateMutexSem (NULL, &hSemTimer, 0L, 1);60 else 61 DosRequestMutexSem (hSemTimer, SEM_INDEFINITE_WAIT);59 if (timercritsect.hmtxLock == 0) 60 DosInitializeCriticalSection(&timercritsect, NULL); 61 62 DosEnterCriticalSection(&timercritsect); 62 63 } 63 64 64 65 inline void LeaveCriticalSection (void) 65 66 { 66 Dos ReleaseMutexSem (hSemTimer);67 DosLeaveCriticalSection(&timercritsect); 67 68 } 68 69
Note:
See TracChangeset
for help on using the changeset viewer.