Changeset 756 for trunk/src/winmm/os2timer.h
- Timestamp:
- Aug 31, 1999, 5:06:17 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/winmm/os2timer.h
r95 r756 1 /* $Id: os2timer.h,v 1. 3 1999-06-10 16:24:34phaller Exp $ */1 /* $Id: os2timer.h,v 1.4 1999-08-31 15:04:11 phaller Exp $ */ 2 2 3 3 #ifndef __OS2TIMER_H__ … … 7 7 * 8 8 * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl) 9 * Copyright 1999 Patrick Haller (phaller@gmx.net) 9 10 * 10 11 * Project Odin Software License can be found in LICENSE.TXT … … 16 17 #define HTIMER int 17 18 #endif 19 20 21 /**************************************************************************** 22 * Structures * 23 ****************************************************************************/ 24 25 #if 0 26 typedef struct _MMTIMEREVENT 27 { 28 struct _MMTIMEREVENT* prev; 29 struct _MMTIMEREVENT* next; 30 31 DWORD id; // event id 32 DWORD timeScheduled; // system time to fire event 33 DWORD timePeriod; // period if periodic event 34 TID tidCaller; // thread ID of caller thread 35 DWORD dwUser; // user supplied value 36 LPTIMERCALLBACK lpCallback; // address to call 37 DWORD dwFlags; // event flags 38 } MMTIMEREVENT, *PMMTIMEREVENT, *LPTIMEREVENT; 39 #endif 40 41 /* 42 addEvent 43 removeEvent 44 rescheduleEvent 45 callbackCaller 46 */ 47 48 49 /**************************************************************************** 50 * Class: OS2TimerResolution * 51 ****************************************************************************/ 52 53 class OS2TimerResolution 54 { 55 public: 56 // public entries 57 static BOOL enterResolutionScope(int dwPeriod); // request timer resolution 58 static BOOL leaveResolutionScope(int dwPeriod); // release resolution request 59 static int queryCurrentResolution(); // query maximum resolution 60 61 // public variables 62 int dwPeriod; 63 64 protected: 65 // constructors and destructors 66 OS2TimerResolution(void); 67 OS2TimerResolution(int dwPeriod); 68 ~OS2TimerResolution(); 69 70 // simple linked list 71 static OS2TimerResolution* sTimerResolutions; // list of resolution scoped 72 OS2TimerResolution* next; // link to next entry 73 }; 74 75 76 /**************************************************************************** 77 * Class: OS2Timer * 78 ****************************************************************************/ 18 79 19 80 class OS2Timer
Note:
See TracChangeset
for help on using the changeset viewer.