Changeset 10269 for trunk/src/winmm/os2timer.h
- Timestamp:
- Oct 13, 2003, 11:18:38 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/winmm/os2timer.h
r9901 r10269 1 /* $Id: os2timer.h,v 1.1 2 2003-03-05 14:48:45sandervl Exp $ */1 /* $Id: os2timer.h,v 1.13 2003-10-13 09:18:37 sandervl Exp $ */ 2 2 3 3 #ifndef __OS2TIMER_H__ … … 40 40 ****************************************************************************/ 41 41 42 #if 043 typedef struct _MMTIMEREVENT44 {45 struct _MMTIMEREVENT* prev;46 struct _MMTIMEREVENT* next;47 48 DWORD id; // event id49 DWORD timeScheduled; // system time to fire event50 DWORD timePeriod; // period if periodic event51 TID tidCaller; // thread ID of caller thread52 DWORD dwUser; // user supplied value53 LPTIMERCALLBACK lpCallback; // address to call54 DWORD dwFlags; // event flags55 } MMTIMEREVENT, *PMMTIMEREVENT, *LPTIMEREVENT;56 #endif57 58 42 /* 59 43 addEvent … … 75 59 static BOOL leaveResolutionScope(int dwPeriod); // release resolution request 76 60 static int queryCurrentResolution(); // query maximum resolution 77 61 78 62 // public variables 79 63 int dwPeriod; … … 107 91 void KillTimer(); 108 92 109 110 93 DWORD getTimerID() { return timerID; }; 111 94 void setTimerID(DWORD id) { timerID = id; }; 95 96 #ifdef DEBUG 97 LONG addRef(); 98 #else 99 LONG addRef() { return InterlockedIncrement(&refCount); }; 100 #endif 101 LONG getRefCount() { return refCount; }; 102 LONG release(); 112 103 113 104 protected: … … 130 121 Stopped 131 122 }; 123 124 LONG refCount; 125 132 126 static int timerPeriod; 133 127
Note:
See TracChangeset
for help on using the changeset viewer.