Changeset 1804 for trunk/src/kmk/incdep.c
- Timestamp:
- Sep 21, 2008, 9:55:08 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/incdep.c
r1803 r1804 30 30 * Header Files * 31 31 *******************************************************************************/ 32 /*#define PARSE_IN_WORKER*/33 34 32 #ifdef __OS2__ 35 33 # define INCL_BASE … … 64 62 #ifdef WINDOWS32 65 63 # include <io.h> 64 # include <process.h> 66 65 # include <Windows.h> 66 # define PARSE_IN_WORKER 67 67 #endif 68 68 … … 194 194 /* The handles to the worker threads. */ 195 195 #ifdef HAVE_PTHREAD 196 static pthread_t incdep_threads[ 4];196 static pthread_t incdep_threads[2]; 197 197 #elif defined (WINDOWS32) 198 static HANDLE incdep_threads[ 4];198 static HANDLE incdep_threads[2]; 199 199 #elif defined (__OS2__) 200 static TID incdep_threads[ 4];201 #endif 202 static unsigned incdep_num_threads = 1;200 static TID incdep_threads[2]; 201 #endif 202 static unsigned incdep_num_threads; 203 203 204 204 /* flag indicating whether the worker threads should terminate or not. */ … … 537 537 hThread = _beginthreadex (NULL, 128*1024, incdep_worker_windows, 538 538 NULL, 0, &tid); 539 if (hThread != 0 && hThread != ~(uintptr_t)0)539 if (hThread == 0 || hThread == ~(uintptr_t)0) 540 540 fatal (f, _("_beginthreadex failed: err=%d"), errno); 541 541 incdep_threads[i] = (HANDLE)hThread;
Note:
See TracChangeset
for help on using the changeset viewer.