Changeset 329 for trunk/dll/timer.c
- Timestamp:
- Jul 25, 2006, 8:39:11 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/timer.c
r2 r329 1 2 /*********************************************************************** 3 4 $Id$ 5 6 Timer thread 7 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2006 Steven H. Levine 10 11 22 Jul 06 SHL Check more run time errors 12 13 ***********************************************************************/ 14 1 15 #define INCL_DOS 2 16 #define INCL_DOSERRORS 3 17 #define INCL_WIN 18 #include <os2.h> 4 19 5 #include <os2.h>6 20 #include <stdarg.h> 7 21 #include <stdio.h> 8 22 #include <stdlib.h> 9 23 #include <string.h> 24 10 25 #include "fm3dll.h" 11 26 #include "fm3str.h" … … 13 28 #pragma alloc_text(TIMER,TimerThread,StartTimer,StopTimer) 14 29 30 static PSZ pszSrcFile = __FILE__; 31 15 32 static HEV hevTimerSem; 16 33 17 18 static void TimerThread (void *args) { 19 34 static void TimerThread (void *args) 35 { 20 36 HAB hab2; 21 37 HMQ hmq2; … … 66 82 } 67 83 68 BOOL StartTimer (void) { 84 //== StartTimer() return TRUE can start thread == 69 85 70 return (_beginthread(TimerThread, 71 NULL, 72 32768, 73 (PVOID)0) != -1); 86 BOOL StartTimer (void) 87 { 88 INT rc = _beginthread(TimerThread,NULL,32768,(PVOID)0); 89 90 if (rc == -1) 91 Runtime_Error(pszSrcFile, __LINE__, GetPString(IDS_COULDNTSTARTTHREADTEXT)); 92 93 return rc != -1; 74 94 } 75 95 76 void StopTimer (void) {77 96 void StopTimer (void) 97 { 78 98 DosPostEventSem(hevTimerSem); 79 99 }
Note:
See TracChangeset
for help on using the changeset viewer.