VirtualBox

Changeset 1868 in kBuild for trunk/src/kmk


Ignore:
Timestamp:
Oct 15, 2008 11:10:08 PM (16 years ago)
Author:
bird
Message:

kmk/incdep: getting acceptable parse-in-worker performance on linux now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/incdep.c

    r1866 r1868  
    8181#endif
    8282
     83#if defined(__gnu_linux__) || defined(__linux__)
     84# define PARSE_IN_WORKER
     85#endif
     86
    8387
    8488/*******************************************************************************
     
    634638    {
    635639      alloccache_init (&incdep_dep_caches[i], sizeof(struct dep), "incdep dep",
    636                        incdep_cache_allocator, (void *)i);
     640                       incdep_cache_allocator, (void *)(size_t)i);
    637641
    638642#ifdef HAVE_PTHREAD
     
    645649        fatal (f, _("pthread_attr_setdetachstate failed: err=%d"), rc);
    646650      rc = pthread_create(&incdep_threads[i], &attr,
    647                            incdep_worker_pthread, (void *)i);
     651                           incdep_worker_pthread, (void *)(size_t)i);
    648652      if (rc)
    649653        fatal (f, _("pthread_mutex_init failed: err=%d"), rc);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette