Changeset 1866 in kBuild
- Timestamp:
- Oct 15, 2008 1:11:41 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/incdep.c
r1865 r1866 209 209 static pthread_t incdep_threads[1]; 210 210 static struct alloccache incdep_dep_caches[1]; 211 static struct alloccache incdep_nameseq_caches[1];212 211 213 212 #elif defined (WINDOWS32) 214 213 static HANDLE incdep_threads[2]; 215 214 static struct alloccache incdep_dep_caches[2]; 216 static struct alloccache incdep_nameseq_caches[2];217 215 218 216 #elif defined (__OS2__) 219 217 static TID incdep_threads[2]; 220 218 static struct alloccache incdep_dep_caches[2]; 221 static struct alloccache incdep_nameseq_caches[2];222 219 #endif 223 220 static unsigned incdep_num_threads; … … 295 292 free (ptr); 296 293 (void)cur; 297 }298 299 /* alloc a nameseq structure. */300 struct nameseq *301 incdep_alloc_nameseq (struct incdep *cur)302 {303 struct alloccache *cache;304 if (cur->worker_tid != -1)305 cache = &incdep_nameseq_caches[cur->worker_tid];306 else307 cache = &nameseq_cache;308 return alloccache_calloc (cache);309 294 } 310 295 … … 650 635 alloccache_init (&incdep_dep_caches[i], sizeof(struct dep), "incdep dep", 651 636 incdep_cache_allocator, (void *)i); 652 alloccache_init (&incdep_nameseq_caches[i], sizeof(struct nameseq),653 "incdep nameseq", incdep_cache_allocator, (void *)i);654 637 655 638 #ifdef HAVE_PTHREAD … … 714 697 715 698 alloccache_join (&dep_cache, &incdep_dep_caches[i]); 716 alloccache_join (&nameseq_cache, &incdep_nameseq_caches[i]);717 699 } 718 700 incdep_num_threads = 0;
Note:
See TracChangeset
for help on using the changeset viewer.